mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
ARM: sa11x0: assabet: ensure that GPIO27 is driven
GPIO27 is just connected to a CPLD input without any pull-ups or pull- downs. If GPIO27 is left as an input, it will float around mid-supply, which for CMOS inputs is the worst place for a pin to be. Ensure that this pin is driven. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
4f592e6d1a
commit
49e01e3fb6
1 changed files with 8 additions and 0 deletions
|
|
@ -214,6 +214,14 @@ static void __init assabet_init(void)
|
|||
GPCR = GPIO_SSP_TXD | GPIO_SSP_SCLK | GPIO_SSP_SFRM;
|
||||
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.
|
||||
*/
|
||||
GPCR = GPIO_GPIO27;
|
||||
GPDR |= GPIO_GPIO27;
|
||||
|
||||
/*
|
||||
* Set up registers for sleep mode.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue