[PATCH] [27/50] ARM: pxa/cm-x300: fix V3020 RTC functionality

From: Andi Kleen
Date: Thu Jul 28 2011 - 19:48:16 EST


2.6.35-longterm review patch. If anyone has any objections, please let me know.

------------------
From: Igor Grinberg <grinberg@xxxxxxxxxxxxxx>

[ upstream commit 6c7b3ea52e345ab614edb91d3f0e9f3bb3713871 ]

While in sleep mode the CS# and other V3020 RTC GPIOs must be driven
high, otherwise V3020 RTC fails to keep the right time in sleep mode.

Signed-off-by: Igor Grinberg <grinberg@xxxxxxxxxxxxxx>
Cc: stable@xxxxxxxxxx
Signed-off-by: Eric Miao <eric.y.miao@xxxxxxxxx>
Signed-off-by: Andi Kleen <ak@xxxxxxxxxxxxxxx>

Index: linux-2.6.35.y/arch/arm/mach-pxa/cm-x300.c
===================================================================
--- linux-2.6.35.y.orig/arch/arm/mach-pxa/cm-x300.c
+++ linux-2.6.35.y/arch/arm/mach-pxa/cm-x300.c
@@ -157,10 +157,10 @@ static mfp_cfg_t cm_x3xx_mfp_cfg[] __ini
GPIO99_GPIO, /* Ethernet IRQ */

/* RTC GPIOs */
- GPIO95_GPIO, /* RTC CS */
- GPIO96_GPIO, /* RTC WR */
- GPIO97_GPIO, /* RTC RD */
- GPIO98_GPIO, /* RTC IO */
+ GPIO95_GPIO | MFP_LPM_DRIVE_HIGH, /* RTC CS */
+ GPIO96_GPIO | MFP_LPM_DRIVE_HIGH, /* RTC WR */
+ GPIO97_GPIO | MFP_LPM_DRIVE_HIGH, /* RTC RD */
+ GPIO98_GPIO, /* RTC IO */

/* Standard I2C */
GPIO21_I2C_SCL,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/