summaryrefslogtreecommitdiffstats
path: root/include/power/pmic.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-05-20 06:01:35 -0600
committerMinkyu Kang <mk7.kang@samsung.com>2014-05-28 10:58:18 +0900
commit78a36c3ef390f7780840db3b42837e55e002829a (patch)
tree3a7fb1c08862c798c2066b059ba480b4c6a40ced /include/power/pmic.h
parent913702ca397755e06fcc126a063ebbf814ac869b (diff)
downloadblackbird-obmc-uboot-78a36c3ef390f7780840db3b42837e55e002829a.tar.gz
blackbird-obmc-uboot-78a36c3ef390f7780840db3b42837e55e002829a.zip
power: Add PMIC_ prefix to CHARGER_EN/DISABLE
This enum should be common across all PMICs rather than having it independently defined with the same name in multiple places. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'include/power/pmic.h')
-rw-r--r--include/power/pmic.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/power/pmic.h b/include/power/pmic.h
index 8f282dd2f2..a62e6c90a5 100644
--- a/include/power/pmic.h
+++ b/include/power/pmic.h
@@ -17,6 +17,11 @@ enum { I2C_PMIC, I2C_NUM, };
enum { PMIC_READ, PMIC_WRITE, };
enum { PMIC_SENSOR_BYTE_ORDER_LITTLE, PMIC_SENSOR_BYTE_ORDER_BIG, };
+enum {
+ PMIC_CHARGER_DISABLE,
+ PMIC_CHARGER_ENABLE,
+};
+
struct p_i2c {
unsigned char addr;
unsigned char *buf;
OpenPOWER on IntegriCloud