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!
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