summaryrefslogtreecommitdiff
path: root/arch/arm/mach-sa1100/assabet.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2016-09-02 10:50:25 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-04-02 11:11:46 +0100
commit59050a7ec24f77509613f44dee0e3913e05740ca (patch)
treef0308cd15635b6ce78b64e808e82039a8a181a34 /arch/arm/mach-sa1100/assabet.c
parent6a889bcd9c6d47779e06c45339611c89ad78b3f6 (diff)
ARM: sa1100/assabet: use assabet GPIO definitions
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/mach-sa1100/assabet.c')
-rw-r--r--arch/arm/mach-sa1100/assabet.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-sa1100/assabet.c b/arch/arm/mach-sa1100/assabet.c
index ef7354f644b1..6c021f2ae232 100644
--- a/arch/arm/mach-sa1100/assabet.c
+++ b/arch/arm/mach-sa1100/assabet.c
@@ -577,8 +577,8 @@ static void __init assabet_init(void)
/*
* Ensure that the power supply is in "high power" mode.
*/
- GPSR = GPIO_GPIO16;
- GPDR |= GPIO_GPIO16;
+ GPSR = GPIO_PS_MODE_SYNC;
+ GPDR |= GPIO_PS_MODE_SYNC;
/*
* Ensure that these pins are set as outputs and are driving
@@ -590,12 +590,12 @@ static void __init assabet_init(void)
GPDR |= GPIO_SSP_TXD | GPIO_SSP_SCLK | GPIO_SSP_SFRM;
/*
- * Also set GPIO27 as an output; this is used to clock UART3
- * via the FPGA and as otherwise has no pullups or pulldowns,
- * so stop it floating.
+ * Also set GPIO27 as an output; this can be used supply an
+ * external clock via the FPGA and GPIO18 to clock UART3 and
+ * radio. It has no pullups or pulldowns, so stop it floating.
*/
- GPCR = GPIO_GPIO27;
- GPDR |= GPIO_GPIO27;
+ GPCR = GPIO_SYS_CLK;
+ GPDR |= GPIO_SYS_CLK;
/*
* Set up registers for sleep mode.