summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2012-04-10 23:44:13 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-11 09:51:01 +0200
commite77e71d9572737a45ad784bd6bcd29bea4ded24f (patch)
tree70e02997e9006eab2ddf36320e861719e3191065 /include
parent0e524635d7c5b805f85b4baf37777883b938c380 (diff)
downloadbarebox-e77e71d9572737a45ad784bd6bcd29bea4ded24f.tar.gz
Add MC13783 register definitions
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/mfd/mc13xxx.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/mfd/mc13xxx.h b/include/mfd/mc13xxx.h
index 5dfaf4a..a9dd847 100644
--- a/include/mfd/mc13xxx.h
+++ b/include/mfd/mc13xxx.h
@@ -14,6 +14,47 @@
#define MC13XXX_REG_IDENTIFICATION 0x07
+#define MC13783_REG_INT_STATUS0 0x00
+#define MC13783_REG_INT_MASK0 0x01
+#define MC13783_REG_INT_SENSE0 0x02
+#define MC13783_REG_INT_STATUS1 0x03
+#define MC13783_REG_INT_MASK1 0x04
+#define MC13783_REG_INT_SENSE1 0x05
+#define MC13783_REG_PU_MODE_S 0x06
+#define MC13783_REG_SEMAPHORE 0x08
+#define MC13783_REG_ARB_PER_AUDIO 0x09
+#define MC13783_REG_ARB_SWITCHERS 0x0a
+#define MC13783_REG_ARB_REGULATORS(x) (0x0b + (x)) /* 0 .. 1 */
+#define MC13783_REG_POWER_CONTROL(x) (0x0d + (x)) /* 0 .. 2 */
+#define MC13783_REG_REGEN_ASSIGNMENT 0x10
+#define MC13783_REG_CONTROL_SPARE 0x11
+#define MC13783_REG_MEMORY_A 0x12
+#define MC13783_REG_MEMORY_B 0x13
+#define MC13783_REG_RTC_TIME 0x14
+#define MC13783_REG_RTC_ALARM 0x15
+#define MC13783_REG_RTC_DAY 0x16
+#define MC13783_REG_RTC_DAY_ALARM 0x17
+#define MC13783_REG_SWITCHERS(x) (0x18 + (x)) /* 0 .. 5 */
+#define MC13783_REG_REG_SETTING(x) (0x1e + (x)) /* 0 .. 1 */
+#define MC13783_REG_REG_MODE(x) (0x20 + (x)) /* 0 .. 1 */
+#define MC13783_REG_POWER_MISC 0x22
+#define MC13783_REG_POWER_SPARE 0x23
+#define MC13783_REG_AUDIO_RX_0 0x24
+#define MC13783_REG_AUDIO_RX_1 0x25
+#define MC13783_REG_AUDIO_TX 0x26
+#define MC13783_REG_AUDIO_SSI_NETWORK 0x27
+#define MC13783_REG_AUDIO_CODEC 0x28
+#define MC13783_REG_AUDIO_STEREO_DAC 0x29
+#define MC13783_REG_AUDIO_SPARE 0x2a
+#define MC13783_REG_ADC(x) (0x2b + (x)) /* 0 .. 4 */
+#define MC13783_REG_CHARGER 0x30
+#define MC13783_REG_USB 0x31
+#define MC13783_REG_CHARGE_USB_SPARE 0x32
+#define MC13783_REG_LED_CONTROL(x) (0x33 + (x)) /* 0 .. 5 */
+#define MC13783_REG_SPARE 0x39
+#define MC13783_REG_TRIM(x) (0x3a + (x)) /* 0 .. 1 */
+#define MC13783_REG_TEST(x) (0x3c + (x)) /* 0 .. 3 */
+
#define MC13892_REG_INT_STATUS0 0x00
#define MC13892_REG_INT_MASK0 0x01
#define MC13892_REG_INT_SENSE0 0x02