I.MX6 bq27441 driver porting
/**************************************************************************
* I.MX6 bq27441 driver porting
* 声明:
* 本文主要记录bq27441电池检测芯片驱动遇到的一些问题以及解决方法。
*
* 2016-1-28 深圳 南山平山村 曾剑锋
*************************************************************************/ 一、参考文档:
Linux Driver for BQ27XXX
http://www.ti.com/tool/bq27xxxsw-linux 二、官方驱动无效:
从官方指定的地方将驱动下来下来,编译时出各种问题,应该是我们内核版本过低造成的。 三、寻找bq27441驱动:
. 搜索
https://www.google.co.jp/search?q=bq27441+driver+linux+3.0&oq=bq27441+driver+linux+3.0&aqs=chrome..69i57j69i60.319j0j4&sourceid=chrome&es_sm=93&ie=UTF-8
. 采用
https://github.com/aneeshv/linux-bq27xxx/blob/master/drivers/power/bq27x00_battery.c 四、驱动注册:
. 板级文件配置
......
static struct i2c_board_info mxc_i2c2_board_info[] __initdata = {
......
{ I2C_BOARD_INFO("bq274xx", 0x55), },
......
}
......
. 在make menuconfig中选择驱动。 五、查看电源状态:
root@android:/sys/class/power_supply/bq274xx- # ls
capacity
capacity_level
charge_full
charge_full_design
charge_now
current_now
device
power
present
status
subsystem
technology
temp
type
uevent
voltage_now
root@android:/sys/class/power_supply/bq274xx- # cat capacity root@android:/sys/class/power_supply/bq274xx- # cat voltage_now root@android:/sys/class/power_supply/bq274xx- # cat current_now |root@android:/sys/class/power_supply/bq274xx- #
I.MX6 bq27441 driver porting的更多相关文章
- I.MX6 bq27441 driver hacking
/************************************************************************* * I.MX6 bq27441 driver ha ...
- I.MX6 PMU MMPF0100 driver porting
/************************************************************************** * I.MX6 MMPF0100 driver ...
- I.MX6 Goodix GT9xx touchscreen driver porting
/************************************************************************ * I.MX6 Goodix GT9xx touch ...
- I.MX6 Ubuntu core porting
/*********************************************************************** * I.MX6 Ubuntu core porting ...
- I.MX6 Linux udev porting
/*********************************************************************** * I.MX6 Linux udev porting ...
- I.MX6 Android iperf3 porting failed
/***************************************************************************** * I.MX6 Android iperf ...
- I.MX6 Android i2c-tools porting
/************************************************************************** * I.MX6 Android i2c-tool ...
- I.MX6 gpio-keys driver hacking
/**************************************************************************** * I.MX6 gpio-keys driv ...
- I.MX6 bq27441 GPOUT interrupt
/******************************************************************** * I.MX6 bq27441 GPOUT interrup ...
随机推荐
- Unix无缓冲文件操作函数、文件信息查询
问题描述: Unix无缓冲文件操作函数.文件信息查询 问题解决: struct stat 结构体信息: 具体代码: 具体源文件:
- BZOJ1692: [Usaco2007 Dec]队列变换
1692: [Usaco2007 Dec]队列变换 Time Limit: 5 Sec Memory Limit: 64 MBSubmit: 594 Solved: 246[Submit][Sta ...
- 【Asp.net MVC ---杂七杂八】
@RenderSection 母模板:_mainLayout.cshtml <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitio ...
- uva 1423 拓扑排序
刘书上例题 拓扑排序 #include <cstdio> #include <cstdlib> #include <cmath> #include <map ...
- android2.3 -添加自定义按键:作唤醒功能 .
最近需要做个唤醒功能,当按键的时候android系统唤醒并点亮屏,在长按键中,系统不能在进入睡眠. 驱动方面: 1:在平台设备文件中添加 一个按键,定义为唤醒源! \arch\arm\mach-s5p ...
- 无法将 lambda 表达式 转换为类型“System.Delegate”,因为它不是委托类型
this.BeginInvoke(() => { this.btnQuery.Enabled = false; //禁用查询 }); 跨线程调用时,编译上面的代码将提示 对于Control.In ...
- IOS 视图控制对象生命周期-init、viewDidLoad、viewWillAppear、viewDidAppear、viewWillDisappear等的区别及用途
iOS视图控制对象生命周期-init.viewDidLoad.viewWillAppear.viewDidAppear.viewWillDisappear.viewDidDisappear的区别及用途 ...
- 用django-tinymce搞个富文本编辑器
玩过一圈之后,这些应用慢慢变得简单: 步骤如下: 一,安装: pip install django-tinymce 二,配置APP: INSTALLED_APPS = ( ... 'tinymce', ...
- hdu 1309 Loansome Car Buyer
纯粹的阅读理解题………… ;}
- *[topcoder]TaroFriends
http://community.topcoder.com/stat?c=problem_statement&pm=13005 好题.最暴力是试验2^n种跳法.然后有从结果入手,那么最终的左右 ...