Intel MID platform battery driver.
PATCH 1/1 Intel MID platform battery driver.
Ok this should fix the core problems. I've not switched to threaded IRQs although I've marked that down for future attention when there is a bit more time.
From: Nithish Mahalingam <[email protected]>
The PMIC Battery driver provides battery charging and battery gauge functionality on Intel MID platforms. This provides the basic functions. There are some USB drivers to merge before the selection of charging between the different USB power levels can be enabled.
Moved to a platform device by Alek Du.
Some cleanups by Alan Cox.
Signed-off-by Nithish Mahalingam <[email protected]>
Signed-off-by Alan Cox <[email protected]>
---
drivers/power/Kconfig | 7 drivers/power/Makefile | 1 drivers/power/intel_mid_battery.c | 813 +++++++++++++++++++++++++++++++++++++ 3 files changed, 821 insertions(+), 0 deletions(-) create mode 100644 drivers/power/intel_mid_battery.c
drivers/power/Kconfig +7 -0
@@ -142,4 +142,11 @@ config CHARGER_PCF50633 help Say Y to include support for NXP PCF50633 Main Battery Charger. +config BATTERY_INTEL_MID + tristate "Battery driver for Intel MID platforms" + depends on INTEL_SCU_IPC && SPI + help + Say Y here to enable the battery driver on Intel MID + platforms. + endif # POWER_SUPPLY
drivers/power/Makefile +1 -0
@@ -34,3 +34,4 @@ obj-$(CONFIG_BATTERY_DA9030) += da9030_battery.o obj-$(CONFIG_BATTERY_MAX17040) += max17040_battery.o obj-$(CONFIG_BATTERY_Z2) += z2_battery.o obj-$(CONFIG_CHARGER_PCF50633) += pcf50633-charger.o +obj-$(CONFIG_BATTERY_INTEL_MID) += intel_mid_battery.o
drivers/power/intel_mid_battery.c new file +813 -0
813 lines not on this page · raw message