aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/da9211-regulator.h
diff options
context:
space:
mode:
authorJames Ban <james.ban.opensource@diasemi.com>2014-08-08 14:27:04 +0900
committerMark Brown <broonie@linaro.org>2014-08-16 16:46:22 -0500
commit005547e0828ce9064afebb1e6d56a18efd80e7a3 (patch)
treee862fd217711306c4dcaa260dda9fbca9a7685ff /drivers/regulator/da9211-regulator.h
parentLinux 3.17-rc1 (diff)
downloadlinux-dev-005547e0828ce9064afebb1e6d56a18efd80e7a3.tar.xz
linux-dev-005547e0828ce9064afebb1e6d56a18efd80e7a3.zip
regulator: da9211: support DA9213
This is a patch for supporting DA9213. Signed-off-by: James Ban <james.ban.opensource@diasemi.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/da9211-regulator.h')
-rw-r--r--drivers/regulator/da9211-regulator.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/regulator/da9211-regulator.h b/drivers/regulator/da9211-regulator.h
index 88b1769e8058..93fa9df2721c 100644
--- a/drivers/regulator/da9211-regulator.h
+++ b/drivers/regulator/da9211-regulator.h
@@ -1,5 +1,5 @@
/*
- * da9211-regulator.h - Regulator definitions for DA9211
+ * da9211-regulator.h - Regulator definitions for DA9211/DA9213
* Copyright (C) 2014 Dialog Semiconductor Ltd.
*
* This library is free software; you can redistribute it and/or
@@ -53,12 +53,15 @@
/* BUCK Phase Selection*/
#define DA9211_REG_CONFIG_E 0x147
+/* Device ID */
+#define DA9211_REG_DEVICE_ID 0x201
+
/*
* Registers bits
*/
/* DA9211_REG_PAGE_CON (addr=0x00) */
#define DA9211_REG_PAGE_SHIFT 1
-#define DA9211_REG_PAGE_MASK 0x02
+#define DA9211_REG_PAGE_MASK 0x06
/* On I2C registers 0x00 - 0xFF */
#define DA9211_REG_PAGE0 0
/* On I2C registers 0x100 - 0x1FF */