Enable PMIC switching regulators via SCU firmware

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Enable PMIC switching regulators via SCU firmware

1,109 次查看
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 项奖励
回复
1 回复

1,102 次查看
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 项奖励
回复