hwPowerOn函数在80上用不了
用这个系统一直在重启
regulator_set_voltage(regVGP1, 2800000, 2800000); //3000000 // 2800000
regulator_enable(regVGP1);
regulator_get 貌似少了这个
帮小编顶,哪位大神帮忙解答下
参考可以的5x06的
if(regVGP1 == NULL)
regVGP1=regulator_get(tpd->tpd_dev,TPD_POWER_SOURCE_CUSTOM);
if(regVGP1 != NULL)
//if(power_flag==0)
{
regulator_set_voltage(regVGP1, 2800000, 2800000); //3000000 // 2800000
regulator_enable(regVGP1);
power_flag=1;
}
改为
//hwPowerOn(MT6328_POWER_LDO_VGP1, VOL_2800, "TP");
if(regVGP1 == NULL)
regVGP1=regulator_get(tpd->tpd_dev,MT6325_POWER_LDO_VGP1);
if(regVGP1 != NULL)
//if(power_flag==0)
{
regulator_set_voltage(regVGP1, 2800000, 2800000); //3000000 // 2800000
regulator_enable(regVGP1);
power_flag=1;
}
不行呀,都是用的VGP1的
自顶一下,
//hwPowerOn(MT6328_POWER_LDO_VGP1, VOL_2800, "TP");
if(regVGP1 == NULL)
regVGP1=regulator_get(tpd->tpd_dev,MT6325_POWER_LDO_VGP1);
if(regVGP1 != NULL)
//if(power_flag==0)
{
regulator_set_voltage(regVGP1, 2800000, 2800000); //3000000 // 2800000
regulator_enable(regVGP1);
power_flag=1;
}
改成以下就不重启了,MT6325_POWER_LDO_VGP1为何不能直接调用
if(regVGP1 == NULL)
regVGP1=regulator_get(tpd->tpd_dev,TPD_POWER_SOURCE_CUSTOM);
if(regVGP1 != NULL)
//if(power_flag==0)
{
regulator_set_voltage(regVGP1, 2800000, 2800000); //3000000 // 2800000
regulator_enable(regVGP1);
power_flag=1;
}