Skip to contentSkip to conversation

ARM: pxa: fix PGSR register address calculation

PATCH New Eric Miao 1 participant 3 messages Jul 6, 2011

Subsystems (4)
lore
Share & tools
lore

Eric Miao

author
#0 lore raw

PATCH 1/3 ARM: pxa: fix PGSR register address calculation

From: Paul Parsons <[email protected]>

The file mfp-pxa2xx.c defines a macro, PGSR(), which translates a gpio bank number to a PGSR register address. The function pxa2xx_mfp_suspend() erroneously passed in a gpio number instead of a gpio bank number.

Cc stable at kernel.org
---
 arch/arm/mach-pxa/mfp-pxa2xx.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-pxa/mfp-pxa2xx.c +2 -2
index 87ae312..b27544b 100644
@@ -347,9 +347,9 @@ static int pxa2xx_mfp_suspend(void)
 		if ((gpio_desc[i].config & MFP_LPM_KEEP_OUTPUT) &&
 		    (GPDR(i) & GPIO_bit(i))) {
 			if (GPLR(i) & GPIO_bit(i))
-				PGSR(i) |= GPIO_bit(i);
+				PGSR(gpio_to_bank(i)) |= GPIO_bit(i);
 			else
-				PGSR(i) &= ~GPIO_bit(i);
+				PGSR(gpio_to_bank(i)) &= ~GPIO_bit(i);
 		}
 	}
 
Signature · 1 line
1.7.4.1
author
#1 lore raw

PATCH 2/3 ARM: pxa910: correct nand pmu setting

From: Lei Wen <[email protected]>

The original pair of <0x01db, 208000000> is invalid. Correct to the valid value.

Cc stable at kernel.org
---
 arch/arm/mach-mmp/pxa910.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-mmp/pxa910.c +1 -1
index 8f92ccd..1464607 100644
@@ -110,7 +110,7 @@ static APBC_CLK(pwm2, PXA910_PWM2, 1, 13000000);
 static APBC_CLK(pwm3, PXA910_PWM3, 1, 13000000);
 static APBC_CLK(pwm4, PXA910_PWM4, 1, 13000000);
 
-static APMU_CLK(nand, NAND, 0x01db, 208000000);
+static APMU_CLK(nand, NAND, 0x19b, 156000000);
 static APMU_CLK(u2o, USB, 0x1b, 480000000);
 
 /* device and clock bindings */
Signature · 1 line
1.7.4.1
author
#2 lore raw

PATCH 3/3 ARM: pxa168: correct nand pmu setting

In reply to Eric Miao

From: Lei Wen <[email protected]>

The original pair of <0x01db, 208000000> is invalid. Correct it to the valid value.

The 6th bit of the NFC APMU register indicates NFC works whether at 156Mhz or 78Mhz. So 0x19b indicates NFC works at 156Mhz, and 0x1db indicates it works at 78Mhz.

Cc stable at kernel.org
---
 arch/arm/mach-mmp/pxa168.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-mmp/pxa168.c +1 -1
index 72b4e76..ab9f999 100644
@@ -79,7 +79,7 @@ static APBC_CLK(ssp4, PXA168_SSP4, 4, 0);
 static APBC_CLK(ssp5, PXA168_SSP5, 4, 0);
 static APBC_CLK(keypad, PXA168_KPC, 0, 32000);
 
-static APMU_CLK(nand, NAND, 0x01db, 208000000);
+static APMU_CLK(nand, NAND, 0x19b, 156000000);
 static APMU_CLK(lcd, LCD, 0x7f, 312000000);
 
 /* device and clock bindings */
Signature · 1 line
1.7.4.1