diff options
author | Arun Murthy <arun.murthy@stericsson.com> | 2010-03-23 12:59:37 +0530 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2010-09-02 22:44:47 -0600 |
commit | 29c969e3d795432712d3c5cbbd1c5f10fc108371 (patch) | |
tree | 6cecec619cea68e293b173db14a38a6ccd03e49c /arch/arm/mach-ux500/include | |
parent | 4405821713773029c6e07d59af52620d61ebaeee (diff) |
Added USB charging Maintenance charging
Battery related information from the platform device.
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500/include')
-rw-r--r-- | arch/arm/mach-ux500/include/mach/ab8500_bm.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/include/mach/ab8500_bm.h b/arch/arm/mach-ux500/include/mach/ab8500_bm.h new file mode 100644 index 00000000000..3a30ecbce4b --- /dev/null +++ b/arch/arm/mach-ux500/include/mach/ab8500_bm.h @@ -0,0 +1,35 @@ +/* + * Copyright ST-Ericsson 2009. + * + * Author: Arun Murthy <arun.murthy@stericsson.com> + * Licensed under GPLv2. + */ + +struct ab8500_bm_platform_data { + int name; + int termination_vol; /* voltage in mV */ + int op_cur_lvl; /* o/p current level in mA */ + int ip_vol_lvl; /* i/p current level in mV */ +}; + +/* ChVoltLevel */ +#define CH_VOL_LVL_3P5 0x00 +#define CH_VOL_LVL_4P05 0x16 +#define CH_VOL_LVL_4P1 0x18 +#define CH_VOL_LVL_4P6 0x4D + +/* ChOutputCurrentLevel */ +#define CH_OP_CUR_LVL_0P1 0x00 +#define CH_OP_CUR_LVL_0P9 0x08 +#define CH_OP_CUR_LVL_1P4 0x0D +#define CH_OP_CUR_LVL_1P5 0x0E +#define CH_OP_CUR_LVL_1P6 0x0F + +/* UsbChCurrLevel */ +#define USB_CH_IP_CUR_LVL_0P05 0x00 +#define USB_CH_IP_CUR_LVL_0P09 0x10 +#define USB_CH_IP_CUR_LVL_0P19 0x20 +#define USB_CH_IP_CUR_LVL_0P29 0x30 +#define USB_CH_IP_CUR_LVL_0P38 0x40 +#define USB_CH_IP_CUR_LVL_0P45 0x50 +#define USB_CH_IP_CUR_LVL_0P5 0x60 |