gpio: atmel_pio4: add support for PIO_PORTE on sama7g5
PATCH 1/1 gpio: atmel_pio4: add support for PIO_PORTE on sama7g5
From: Mihai Sain <[email protected]>
Add support for gpio PORT E on sama7g5 soc.
Signed-off-by Mihai Sain <[email protected]>
--- arch/arm/mach-at91/include/mach/atmel_pio4.h | 1 + drivers/gpio/atmel_pio4.c | 5 +++++ 2 files changed, 6 insertions(+)
arch/arm/mach-at91/include/mach/atmel_pio4.h +1 -0
@@ -74,6 +74,7 @@ struct atmel_pio4_port {#define AT91_PIO_PORTB 0x1#define AT91_PIO_PORTC 0x2#define AT91_PIO_PORTD 0x3 +#define AT91_PIO_PORTE 0x4int atmel_pio4_set_gpio (u32 port,u32 pin,u32 config);int atmel_pio4_set_a_periph (u32 port,u32 pin,u32 config);
drivers/gpio/atmel_pio4.c +5 -0
@@ -36,6 +36,11 @@ static struct atmel_pio4_port *atmel_pio4_port_base(u32 port)case AT91_PIO_PORTD : base = (struct atmel_pio4_port *)ATMEL_BASE_PIOD ;break ; +#if (ATMEL_PIO_PORTS >4 ) +case AT91_PIO_PORTE : + base = (struct atmel_pio4_port *)ATMEL_BASE_PIOE ; +break ; +#endif default :printf ("Error: Atmel PIO4: Failed to get PIO base of port#%d!\n" , port);
Signature · 1 line
2.25.1
Quoted 6 lines · Eugen Hristev
From: Mihai Sain <[email protected]>
Add support for gpio PORT E on sama7g5 soc.
Signed-off-by Mihai Sain <[email protected]>---
Applied to u-boot-at91/next with minor commit message edit. Thanks !