mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-20 00:26:39 +08:00
[ARM] 4611/2: AT91: Fix GPIO buttons pins on SAM9261-EK.
The incorrect GPIO pins are being initialized for the buttons on the Atmel AT91SAM9261-EK board. This buggy configuration turns LCD screen blue... Signed-off-by: Nicolas Ferre <nicolas.ferre@rfo.atmel.com> Signed-off-by: Andrew Victor <andrew@sanpeople.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
f230d3f53d
commit
302edfd04e
@ -382,14 +382,14 @@ static struct platform_device ek_button_device = {
|
||||
|
||||
static void __init ek_add_device_buttons(void)
|
||||
{
|
||||
at91_set_gpio_input(AT91_PIN_PB27, 0); /* btn0 */
|
||||
at91_set_deglitch(AT91_PIN_PB27, 1);
|
||||
at91_set_gpio_input(AT91_PIN_PB26, 0); /* btn1 */
|
||||
at91_set_deglitch(AT91_PIN_PB26, 1);
|
||||
at91_set_gpio_input(AT91_PIN_PB25, 0); /* btn2 */
|
||||
at91_set_deglitch(AT91_PIN_PB25, 1);
|
||||
at91_set_gpio_input(AT91_PIN_PB24, 0); /* btn3 */
|
||||
at91_set_deglitch(AT91_PIN_PB24, 1);
|
||||
at91_set_gpio_input(AT91_PIN_PA27, 0); /* btn0 */
|
||||
at91_set_deglitch(AT91_PIN_PA27, 1);
|
||||
at91_set_gpio_input(AT91_PIN_PA26, 0); /* btn1 */
|
||||
at91_set_deglitch(AT91_PIN_PA26, 1);
|
||||
at91_set_gpio_input(AT91_PIN_PA25, 0); /* btn2 */
|
||||
at91_set_deglitch(AT91_PIN_PA25, 1);
|
||||
at91_set_gpio_input(AT91_PIN_PA24, 0); /* btn3 */
|
||||
at91_set_deglitch(AT91_PIN_PA24, 1);
|
||||
|
||||
platform_device_register(&ek_button_device);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user