msm: board-8064: Add support for RTC.
Add platform data structure for PMIC RTC.
Platform data includes following flags:
rtc_write_enable: enable/disable RTC write operation.
rtc_alarm_powerup: enable/disable feature to clear RTC alarm during
shutdown.
Change-Id: Ieb12ff6e21627176e0cc9079ca31d3cdab669932
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8064-pmic.c b/arch/arm/mach-msm/board-8064-pmic.c
index 032d8da..2182079 100644
--- a/arch/arm/mach-msm/board-8064-pmic.c
+++ b/arch/arm/mach-msm/board-8064-pmic.c
@@ -43,12 +43,19 @@
.dev_id = 0,
};
+static struct pm8xxx_rtc_platform_data
+apq8064_pm8921_rtc_pdata = {
+ .rtc_write_enable = false,
+ .rtc_alarm_powerup = false,
+};
+
static struct pm8921_platform_data
apq8064_pm8921_platform_data __devinitdata = {
.regulator_pdatas = msm8064_pm8921_regulator_pdata,
.irq_pdata = &apq8064_pm8921_irq_pdata,
.gpio_pdata = &apq8064_pm8921_gpio_pdata,
.mpp_pdata = &apq8064_pm8921_mpp_pdata,
+ .rtc_pdata = &apq8064_pm8921_rtc_pdata,
};
static struct pm8xxx_irq_platform_data