Enable PMIC switching regulators via SCU firmware

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enable PMIC switching regulators via SCU firmware

1,104 Views
rsk_11
Contributor III

Hi,

I am using PMIC pf8100 with iMX8.
I want to enable PMIC regulator switches SW3 and SW4 via SCU firmware.

I have added the following in pmic_init() board.c

BRD_ERR(PMIC_SET_MODE(PMIC_0_ADDR, PF8100_SW3, SW_RUN_PWM | SW_STBY_PWM));
BRD_ERR(PMIC_SET_VOLTAGE(PMIC_0_ADDR, PF8100_SW3, 1100, REG_STBY_MODE));

BRD_ERR(PMIC_SET_MODE(PMIC_0_ADDR, PF8100_SW4, SW_RUN_PWM | SW_STBY_PWM));
BRD_ERR(PMIC_SET_VOLTAGE(PMIC_0_ADDR, PF8100_SW4, 1100, REG_STBY_MODE));

Can you let me know if this is correct?
Is there any example SCU code to refer to configure the PMIC.

Thanks!

0 Kudos
Reply
1 Reply

1,097 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ruchi

 

in general examples of PMIC_SET_VOLTAGE, PMIC_SET_MODE usage can be found in

board.c file inlcuded in  SCFW Porting Kit​ 1.10.0

explanation of parameters in ..platform/board/pmic.h

 

Best regards
igor

0 Kudos
Reply