Sascha Hauer | 8238add | 2009-08-19 01:40:28 +0200 | [diff] [blame] | 1 | /* |
Yong Shen | 57c78e3 | 2010-12-14 14:00:53 +0800 | [diff] [blame] | 2 | * Copyright 2010 Yong Shen <yong.shen@linaro.org> |
Uwe Kleine-König | 8e00593 | 2010-09-28 16:37:20 +0200 | [diff] [blame] | 3 | * Copyright 2009-2010 Pengutronix |
Uwe Kleine-König | 9e27267 | 2009-11-30 00:53:17 +0100 | [diff] [blame] | 4 | * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de> |
Sascha Hauer | 8238add | 2009-08-19 01:40:28 +0200 | [diff] [blame] | 5 | * |
Uwe Kleine-König | 9e27267 | 2009-11-30 00:53:17 +0100 | [diff] [blame] | 6 | * This program is free software; you can redistribute it and/or modify it under |
| 7 | * the terms of the GNU General Public License version 2 as published by the |
| 8 | * Free Software Foundation. |
Sascha Hauer | 8238add | 2009-08-19 01:40:28 +0200 | [diff] [blame] | 9 | */ |
Uwe Kleine-König | 9e27267 | 2009-11-30 00:53:17 +0100 | [diff] [blame] | 10 | #ifndef __LINUX_MFD_MC13783_H |
| 11 | #define __LINUX_MFD_MC13783_H |
Sascha Hauer | 8238add | 2009-08-19 01:40:28 +0200 | [diff] [blame] | 12 | |
Uwe Kleine-König | 8e00593 | 2010-09-28 16:37:20 +0200 | [diff] [blame] | 13 | #include <linux/mfd/mc13xxx.h> |
Sascha Hauer | 8238add | 2009-08-19 01:40:28 +0200 | [diff] [blame] | 14 | |
Yong Shen | 57c78e3 | 2010-12-14 14:00:53 +0800 | [diff] [blame] | 15 | #define MC13783_REG_SW1A 0 |
| 16 | #define MC13783_REG_SW1B 1 |
| 17 | #define MC13783_REG_SW2A 2 |
| 18 | #define MC13783_REG_SW2B 3 |
| 19 | #define MC13783_REG_SW3 4 |
| 20 | #define MC13783_REG_PLL 5 |
| 21 | #define MC13783_REG_VAUDIO 6 |
| 22 | #define MC13783_REG_VIOHI 7 |
| 23 | #define MC13783_REG_VIOLO 8 |
| 24 | #define MC13783_REG_VDIG 9 |
| 25 | #define MC13783_REG_VGEN 10 |
| 26 | #define MC13783_REG_VRFDIG 11 |
| 27 | #define MC13783_REG_VRFREF 12 |
| 28 | #define MC13783_REG_VRFCP 13 |
| 29 | #define MC13783_REG_VSIM 14 |
| 30 | #define MC13783_REG_VESIM 15 |
| 31 | #define MC13783_REG_VCAM 16 |
| 32 | #define MC13783_REG_VRFBG 17 |
| 33 | #define MC13783_REG_VVIB 18 |
| 34 | #define MC13783_REG_VRF1 19 |
| 35 | #define MC13783_REG_VRF2 20 |
| 36 | #define MC13783_REG_VMMC1 21 |
| 37 | #define MC13783_REG_VMMC2 22 |
| 38 | #define MC13783_REG_GPO1 23 |
| 39 | #define MC13783_REG_GPO2 24 |
| 40 | #define MC13783_REG_GPO3 25 |
| 41 | #define MC13783_REG_GPO4 26 |
| 42 | #define MC13783_REG_V1 27 |
| 43 | #define MC13783_REG_V2 28 |
| 44 | #define MC13783_REG_V3 29 |
| 45 | #define MC13783_REG_V4 30 |
| 46 | #define MC13783_REG_PWGT1SPI 31 |
| 47 | #define MC13783_REG_PWGT2SPI 32 |
Sascha Hauer | 8238add | 2009-08-19 01:40:28 +0200 | [diff] [blame] | 48 | |
Uwe Kleine-König | 8e00593 | 2010-09-28 16:37:20 +0200 | [diff] [blame] | 49 | #define MC13783_IRQ_ADCDONE MC13XXX_IRQ_ADCDONE |
| 50 | #define MC13783_IRQ_ADCBISDONE MC13XXX_IRQ_ADCBISDONE |
| 51 | #define MC13783_IRQ_TS MC13XXX_IRQ_TS |
Uwe Kleine-König | 9e27267 | 2009-11-30 00:53:17 +0100 | [diff] [blame] | 52 | #define MC13783_IRQ_WHIGH 3 |
| 53 | #define MC13783_IRQ_WLOW 4 |
Uwe Kleine-König | 8e00593 | 2010-09-28 16:37:20 +0200 | [diff] [blame] | 54 | #define MC13783_IRQ_CHGDET MC13XXX_IRQ_CHGDET |
Uwe Kleine-König | 9e27267 | 2009-11-30 00:53:17 +0100 | [diff] [blame] | 55 | #define MC13783_IRQ_CHGOV 7 |
Uwe Kleine-König | 8e00593 | 2010-09-28 16:37:20 +0200 | [diff] [blame] | 56 | #define MC13783_IRQ_CHGREV MC13XXX_IRQ_CHGREV |
| 57 | #define MC13783_IRQ_CHGSHORT MC13XXX_IRQ_CHGSHORT |
| 58 | #define MC13783_IRQ_CCCV MC13XXX_IRQ_CCCV |
| 59 | #define MC13783_IRQ_CHGCURR MC13XXX_IRQ_CHGCURR |
| 60 | #define MC13783_IRQ_BPON MC13XXX_IRQ_BPON |
| 61 | #define MC13783_IRQ_LOBATL MC13XXX_IRQ_LOBATL |
| 62 | #define MC13783_IRQ_LOBATH MC13XXX_IRQ_LOBATH |
Uwe Kleine-König | 9e27267 | 2009-11-30 00:53:17 +0100 | [diff] [blame] | 63 | #define MC13783_IRQ_UDP 15 |
| 64 | #define MC13783_IRQ_USB 16 |
| 65 | #define MC13783_IRQ_ID 19 |
| 66 | #define MC13783_IRQ_SE1 21 |
| 67 | #define MC13783_IRQ_CKDET 22 |
| 68 | #define MC13783_IRQ_UDM 23 |
Uwe Kleine-König | 8e00593 | 2010-09-28 16:37:20 +0200 | [diff] [blame] | 69 | #define MC13783_IRQ_1HZ MC13XXX_IRQ_1HZ |
| 70 | #define MC13783_IRQ_TODA MC13XXX_IRQ_TODA |
Uwe Kleine-König | 9e27267 | 2009-11-30 00:53:17 +0100 | [diff] [blame] | 71 | #define MC13783_IRQ_ONOFD1 27 |
| 72 | #define MC13783_IRQ_ONOFD2 28 |
| 73 | #define MC13783_IRQ_ONOFD3 29 |
Uwe Kleine-König | 8e00593 | 2010-09-28 16:37:20 +0200 | [diff] [blame] | 74 | #define MC13783_IRQ_SYSRST MC13XXX_IRQ_SYSRST |
| 75 | #define MC13783_IRQ_RTCRST MC13XXX_IRQ_RTCRST |
| 76 | #define MC13783_IRQ_PC MC13XXX_IRQ_PC |
| 77 | #define MC13783_IRQ_WARM MC13XXX_IRQ_WARM |
| 78 | #define MC13783_IRQ_MEMHLD MC13XXX_IRQ_MEMHLD |
Uwe Kleine-König | 9e27267 | 2009-11-30 00:53:17 +0100 | [diff] [blame] | 79 | #define MC13783_IRQ_PWRRDY 35 |
Uwe Kleine-König | 8e00593 | 2010-09-28 16:37:20 +0200 | [diff] [blame] | 80 | #define MC13783_IRQ_THWARNL MC13XXX_IRQ_THWARNL |
| 81 | #define MC13783_IRQ_THWARNH MC13XXX_IRQ_THWARNH |
| 82 | #define MC13783_IRQ_CLK MC13XXX_IRQ_CLK |
Uwe Kleine-König | 9e27267 | 2009-11-30 00:53:17 +0100 | [diff] [blame] | 83 | #define MC13783_IRQ_SEMAF 39 |
| 84 | #define MC13783_IRQ_MC2B 41 |
| 85 | #define MC13783_IRQ_HSDET 42 |
| 86 | #define MC13783_IRQ_HSL 43 |
| 87 | #define MC13783_IRQ_ALSPTH 44 |
| 88 | #define MC13783_IRQ_AHSSHORT 45 |
Sascha Hauer | 8238add | 2009-08-19 01:40:28 +0200 | [diff] [blame] | 89 | |
Uwe Kleine-König | 8e00593 | 2010-09-28 16:37:20 +0200 | [diff] [blame] | 90 | #endif /* ifndef __LINUX_MFD_MC13783_H */ |