ARM: pxa: fix PGSR register address calculation
Subsystems (4)
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.
--- arch/arm/mach-pxa/mfp-pxa2xx.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-pxa/mfp-pxa2xx.c +2 -2
@@ -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
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.
--- arch/arm/mach-mmp/pxa910.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-mmp/pxa910.c +1 -1
@@ -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
PATCH 3/3 ARM: pxa168: correct nand pmu setting
In reply to Eric MiaoFrom: 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.
--- arch/arm/mach-mmp/pxa168.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-mmp/pxa168.c +1 -1
@@ -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