Forum Discussion
The method that control PMIC power supply on another device driver
Hello, can anyone help my difficulty?
I'm a developer for Windows driver and developing a device driver, but has some questions when implement the detial.
Background as below:
1. The driver is used for SD host controller which is integrated in Qualcomm CPU and the SD host controller VDD1 power supply is controller by a PMIC.
2. I want to control the VDD1 power supply at the SD host controller driver, but can't find the interface to communicate with PMIC at Windows driver.
3. I researched Linux driver, the PMIC power supply is controlled by Regulator framework. There are APIs "regulator_disable()/regulator_enable()" to disable/enable power supply, it can be used at SD host controller Linux driver.
My question is that if there are interfaces can be used to control the PMIC power supply at my SD host controller Windows driver?
Thanks for your help!
1 Reply
- ChevronLiCopper Contributor
I found an API StorPortPoFxSetPerfState, which can change power supply via PerfState change.
But the return result always STOR_STATUS_INVALID_PARAMETER
Below code displayed my input parameters, anyone can help find the issue point?
ULONG status = STOR_STATUS_SUCCESS;
u32 perstate = 0;
status = StorPortPoFxSetPerfState(pdx, NULL, 0, 0, 0, 0x14, &perstate);
PrintMsg("StorPortPoFxSetPerfState result 0x%08x",status);