diff options
author | venu byravarasu <vbyravarasu@nvidia.com> | 2011-06-16 16:42:40 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:47:08 -0800 |
commit | 05f5931395973f904d5067c2c0d884efacc4a7a2 (patch) | |
tree | 8ba56d0c2e3bc23286e2c32047a9fd8e0f4ca7d2 | |
parent | 6a118696e3075628e7e90fccee454b7fe5740222 (diff) |
arm:tegra:enterprise:board changes for PMU RTC
Board changes needed to enable TI PMU 80031 RTC
on enterprise are added.
bug 833336
Original-Change-Id: Ic2d2374ed6bff773964bd7bf6b81c69feda2d9b1
Reviewed-on: http://git-master/r/34457
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>
Rebase-Id: Raa8d932bdbd4586201160e4070077b59ce5f55cc
-rw-r--r-- | arch/arm/mach-tegra/board-enterprise-power.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-power.c b/arch/arm/mach-tegra/board-enterprise-power.c index cb98b01032cb..3129162ef841 100644 --- a/arch/arm/mach-tegra/board-enterprise-power.c +++ b/arch/arm/mach-tegra/board-enterprise-power.c @@ -174,6 +174,25 @@ TPS_PDATA_INIT(ldoln, 1000, 3300, tps80031_rails(SMPS3), 0, 0, 0, -1, 0, 0); TPS_PDATA_INIT(ldousb, 1000, 3300, 0, 0, 0, 0, -1, 0, 0); TPS_PDATA_INIT(vana, 1000, 3300, 0, 0, 0, 0, -1, 0, 0); +static struct tps80031_rtc_platform_data rtc_data = { + .irq = TPS80031_IRQ_BASE + TPS80031_INT_RTC_ALARM, + .time = { + .tm_year = 2011, + .tm_mon = 0, + .tm_mday = 1, + .tm_hour = 1, + .tm_min = 2, + .tm_sec = 3, + }, +}; + +#define TPS_RTC() \ + { \ + .id = 0, \ + .name = "rtc_tps80031", \ + .platform_data = &rtc_data, \ + } + #define TPS_REG(_id, _data) \ { \ .id = TPS80031_ID_##_id, \ @@ -197,6 +216,7 @@ static struct tps80031_subdev_info tps80031_devs[] = { TPS_REG(LDOLN, ldoln), TPS_REG(LDOUSB, ldousb), TPS_REG(VANA, vana), + TPS_RTC(), }; struct tps80031_32kclock_plat_data clk32k_pdata = { |