PM_Charger
文章平均质量分 61
lamdoc
这个作者很懒,什么都没留下…
展开
-
Power up 键设计
ONKEY_Detect 这是8807上的一个pin。经常用来做power_up键使。 默认情况是高电平,当按下power_up键时,拉低到低电平。 可以通过I2C总线 读8807的0x02寄存器的bit0位。 高电平时,bit0 = 0; 当按下键,低电平时,bit0 = 1原创 2012-06-29 16:55:52 · 369 阅读 · 0 评论 -
88PM8806
8806也是一个PMIC ,同时还带了其他的一些功能,如:LED backlight,Wled driver,RGB LED driver,及 power for vibrator motor. 应用图入下: 通过I2C 与CPU通信。 主要的功能是控制VSYS 的输出。 通过设置0x10寄存器,可以设置VSYS的输出电压和最大电流。原创 2012-06-29 16:56:46 · 359 阅读 · 0 评论 -
PXA910电源管理代码 pxa910_pm.c
/* * PXA910 Power Management Routines * * This software program is licensed subject to the GNU General Public License * (GPL).Version 2,June 1991, available at http://www.fsf.org/copyleft/gpl.html原创 2012-06-29 16:59:19 · 736 阅读 · 0 评论 -
手机开机预充电
if voltage >3.75V ,and has charger,then charge to 3.9v if voltage >3.75V ,and has no charger ,then power up、 if voltage if voltage void PrechargeCheck() { int avg_voltage = 0;原创 2012-06-29 16:54:26 · 456 阅读 · 0 评论 -
基于Android的Linux内核的电源管理:Early Suspend
1. 用户空间的接口 在kernel/power/main.c中,定义了一组sysfs的属性文件,其中一个定义是: power_attr(state); 把这个宏展开后: static struct kobj_attribute state_attr = { \ .attr ={ \原创 2012-06-29 16:49:19 · 419 阅读 · 0 评论 -
early suspend
晒晒 early suspend 的源代码~ 我对PM这块不太懂,不知道early suspend 干啥的,具体怎么干的。就知道应该是PM相关的,进入和退出休眠状态需要的代码,即suspend和resume。 1. early_suspend 数据结构: struct early_suspend { #ifdef CONFIG_HAS_EARLYSUSPEND原创 2012-06-29 16:50:58 · 482 阅读 · 0 评论 -
手机进入下载模式前_电压检测
if vbat if vbat >3.75v, go to softwareupgrade if(pre_voltage_detect()){ flashmode_low_voltage(); while(1); } int pre_voltage_detect() { int avg原创 2012-06-29 16:53:31 · 672 阅读 · 0 评论 -
88PM8807
8807是块功能强大的电源管理集成芯片,与8806配合使用,用来辅助pxa900系列CPU。 他包含了电源管理模块,RTC和clock模块。audio module,lighting module,measurement section,and miscellaneous section. 模块示意图如下: 与8806一起工作的框图: 这时,当连上充电器,或插上USB下载原创 2012-06-29 16:57:29 · 340 阅读 · 0 评论