]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.0.1/arm-pxa-cm-x300-fix-v3020-rtc-functionality.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.0.1 / arm-pxa-cm-x300-fix-v3020-rtc-functionality.patch
1 From 6c7b3ea52e345ab614edb91d3f0e9f3bb3713871 Mon Sep 17 00:00:00 2001
2 From: Igor Grinberg <grinberg@compulab.co.il>
3 Date: Mon, 9 May 2011 14:41:46 +0300
4 Subject: ARM: pxa/cm-x300: fix V3020 RTC functionality
5
6 From: Igor Grinberg <grinberg@compulab.co.il>
7
8 commit 6c7b3ea52e345ab614edb91d3f0e9f3bb3713871 upstream.
9
10 While in sleep mode the CS# and other V3020 RTC GPIOs must be driven
11 high, otherwise V3020 RTC fails to keep the right time in sleep mode.
12
13 Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
14 Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16
17 ---
18 arch/arm/mach-pxa/cm-x300.c | 8 ++++----
19 1 file changed, 4 insertions(+), 4 deletions(-)
20
21 --- a/arch/arm/mach-pxa/cm-x300.c
22 +++ b/arch/arm/mach-pxa/cm-x300.c
23 @@ -161,10 +161,10 @@ static mfp_cfg_t cm_x3xx_mfp_cfg[] __ini
24 GPIO99_GPIO, /* Ethernet IRQ */
25
26 /* RTC GPIOs */
27 - GPIO95_GPIO, /* RTC CS */
28 - GPIO96_GPIO, /* RTC WR */
29 - GPIO97_GPIO, /* RTC RD */
30 - GPIO98_GPIO, /* RTC IO */
31 + GPIO95_GPIO | MFP_LPM_DRIVE_HIGH, /* RTC CS */
32 + GPIO96_GPIO | MFP_LPM_DRIVE_HIGH, /* RTC WR */
33 + GPIO97_GPIO | MFP_LPM_DRIVE_HIGH, /* RTC RD */
34 + GPIO98_GPIO, /* RTC IO */
35
36 /* Standard I2C */
37 GPIO21_I2C_SCL,