diff options
author | Zhou Jingyu <b02241@freescale.com> | 2010-02-24 16:35:17 +0800 |
---|---|---|
committer | Alejandro Gonzalez <alex.gonzalez@digi.com> | 2010-05-25 11:17:17 +0200 |
commit | a5d45ab631b4bbe4fb4ae402d12ae1b7e0e7e9b1 (patch) | |
tree | 0a2cc682133efcfa44e2dc1bbe5bd9b7573388ab /arch/arm/plat-mxs/device.c | |
parent | a71d6807af088647720baeff6cf4a75fdc49b9a5 (diff) |
ENGR00117740-2 mxs battery driver, porting
mxs battery driver, porting
Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'arch/arm/plat-mxs/device.c')
-rw-r--r-- | arch/arm/plat-mxs/device.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/plat-mxs/device.c b/arch/arm/plat-mxs/device.c index 7bdf57eb1662..f078414cd404 100644 --- a/arch/arm/plat-mxs/device.c +++ b/arch/arm/plat-mxs/device.c @@ -363,6 +363,16 @@ static struct platform_device mxs_dcp = { }; #endif +#if defined(CONFIG_BATTERY_MXS) +static struct platform_device mxs_battery = { + .name = "mxs-battery", + .id = 0, + .dev = { + .release = mxs_nop_release, + } , +}; +#endif + static struct mxs_dev_lookup dev_lookup[] = { #if defined(CONFIG_SERIAL_MXS_DUART) || \ defined(CONFIG_SERIAL_MXS_DUART_MODULE) @@ -502,6 +512,15 @@ static struct mxs_dev_lookup dev_lookup[] = { .pdev = &mxs_dcp, }, #endif + +#if defined(CONFIG_BATTERY_MXS) + { + .name = "mxs-battery", + .size = 1, + .pdev = &mxs_battery, + }, +#endif + }; struct platform_device *mxs_get_device(char *name, int id) |