引用: sunsiyi92 发表于 2018-6-21 12:20
这个TPS40041是基于GPIO来做调节的电压芯片。驱动的名字不带TPS40041...
这个驱动怎么用, 这两个文档能给你答案
http://processors.wiki.ti.com/index.php/TI81XX_PSP_PM_AVS_Driver_User_Guide
版主你好,你给的文档,我仔细了看了,按照里面的步骤进行了配置,我们的配置和你们的evm版本一样的,我现在又几点疑惑,希望版主能够给予解答,谢谢!
1、文档中提到gpio-regulator.c,我看了这部分代码,
static int gpio_vr_dcdc_enable(struct regulator_dev *dev)
[
/* Add your PMIC specific enable code */
return 0;
] 这部分需不需要加代码?
2、文档中提到的SmartReflex-ti816x.c代码,
/* sr_enable - Enable SR module
* @sr: contains SR driver data
* @srid: contains the srid, specify whether it is HVT or SVT
*
* Enable SR module by writing nTarget values to corresponding SR
* NVALUERECIPROCAL register, enable the interrupt and enable SR
*/
static void sr_enable(struct ti816x_sr *sr, u32 srid)
SR* NVALUERECIPROCAL register在哪里?
3、有配置Uncheck the GPIO voltage regulator from the menu,我想确定是不是真的不选gpio电压调节这个模块。
4、还有没有其他地方的代码需要修改。
最近刚刚调avs驱动,有很多地方不是很清楚,希望版主给以指教,谢谢!
引用: sunsiyi92 发表于 2018-6-21 12:20
这个TPS40041是基于GPIO来做调节的电压芯片。驱动的名字不带TPS40041...
这个驱动怎么用, 这两个文档能给你答案
http://processors.wiki.ti.com/index.php/TI81XX_PSP_PM_AVS_Driver_User_Guide
版主你好,你给的文档,我仔细了看了,按照里面的步骤进行了配置,我们的配置和你们的evm版本一样的,我现在又几点疑惑,希望版主能够给予解答,谢谢!
1、文档中提到gpio-regulator.c,我看了这部分代码,
static int gpio_vr_dcdc_enable(struct regulator_dev *dev)
[
/* Add your PMIC specific enable code */
return 0;
] 这部分需不需要加代码?
2、文档中提到的SmartReflex-ti816x.c代码,
/* sr_enable - Enable SR module
* @sr: contains SR driver data
* @srid: contains the srid, specify whether it is HVT or SVT
*
* Enable SR module by writing nTarget values to corresponding SR
* NVALUERECIPROCAL register, enable the interrupt and enable SR
*/
static void sr_enable(struct ti816x_sr *sr, u32 srid)
SR* NVALUERECIPROCAL register在哪里?
3、有配置Uncheck the GPIO voltage regulator from the menu,我想确定是不是真的不选gpio电压调节这个模块。
4、还有没有其他地方的代码需要修改。
最近刚刚调avs驱动,有很多地方不是很清楚,希望版主给以指教,谢谢!
举报