summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-cardhu-pm299-power-rails.c
diff options
context:
space:
mode:
authorvenu byravarasu <vbyravarasu@nvidia.com>2011-12-16 12:45:48 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-21 15:07:39 +0530
commit9ff85583d32986e794a3317c2102d31ae7306bac (patch)
tree015d7f673d5cfe00812c9c10a562cf960d50f0d9 /arch/arm/mach-tegra/board-cardhu-pm299-power-rails.c
parenta6a7fa11d55c62ac3eb0e8f067f1925eced3bf13 (diff)
arm: tegra: cardhu: pm299: Add Ricoh583 RTC support
Add board details for Ricoh583 PMU RTC bug 902137 Change-Id: I02e9565e907cf3c4a631962fb559ec2a058abb53 Signed-off-by: venu byravarasu <vbyravarasu@nvidia.com> Reviewed-on: http://git-master/r/70019 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu-pm299-power-rails.c')
-rw-r--r--arch/arm/mach-tegra/board-cardhu-pm299-power-rails.c34
1 files changed, 27 insertions, 7 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-pm299-power-rails.c b/arch/arm/mach-tegra/board-cardhu-pm299-power-rails.c
index de95624fb843..866c3c0ff506 100644
--- a/arch/arm/mach-tegra/board-cardhu-pm299-power-rails.c
+++ b/arch/arm/mach-tegra/board-cardhu-pm299-power-rails.c
@@ -198,12 +198,31 @@ RICOH_PDATA_INIT(ldo6, 0, 1200, 1200, ricoh583_rails(DC2), 0, 0, 1, -1,
RICOH_PDATA_INIT(ldo7, 0, 1200, 1200, ricoh583_rails(DC2), 1, 1, 1, -1, 0, 0, 0, 0, 0);
RICOH_PDATA_INIT(ldo8, 0, 900, 3400, ricoh583_rails(DC2), 1, 0, 0, -1, 0, 0, 0, 0, 0);
-#define RICOH_REG(_id, _name, _sname) \
- { \
- .id = RICOH583_ID_##_id, \
- .name = "ricoh583-regulator", \
- .platform_data = &pdata_##_name##_##_sname, \
- }
+static struct ricoh583_rtc_platform_data rtc_data = {
+ .irq = TEGRA_NR_IRQS + RICOH583_IRQ_YALE,
+ .time = {
+ .tm_year = 2011,
+ .tm_mon = 0,
+ .tm_mday = 1,
+ .tm_hour = 0,
+ .tm_min = 0,
+ .tm_sec = 0,
+ },
+};
+
+#define RICOH_RTC_REG() \
+{ \
+ .id = 0, \
+ .name = "rtc_ricoh583", \
+ .platform_data = &rtc_data, \
+}
+
+#define RICOH_REG(_id, _name, _sname) \
+{ \
+ .id = RICOH583_ID_##_id, \
+ .name = "ricoh583-regulator", \
+ .platform_data = &pdata_##_name##_##_sname, \
+}
#define RICOH583_DEV_COMMON_E118X \
RICOH_REG(DC0, dc0, 0), \
@@ -218,7 +237,8 @@ RICOH_PDATA_INIT(ldo8, 0, 900, 3400, ricoh583_rails(DC2), 1, 0, 0, -1, 0
RICOH_REG(LDO5, ldo3, 0), \
RICOH_REG(LDO6, ldo0, 0), \
RICOH_REG(LDO7, ldo1, 0), \
- RICOH_REG(LDO8, ldo2, 0)
+ RICOH_REG(LDO8, ldo2, 0), \
+ RICOH_RTC_REG()
static struct ricoh583_subdev_info ricoh_devs_e118x_dcdc[] = {
RICOH583_DEV_COMMON_E118X,