diff options
author | Mihai Sain | 2022-05-25 13:32:08 +0300 |
---|---|---|
committer | Eugen Hristev | 2022-06-30 15:49:00 +0300 |
commit | c1cadac7933cbc3f81e9096843bffff8751baff9 (patch) | |
tree | c0e512fa9d5084254f9a1ac7816e9e3daf25f5d4 /drivers | |
parent | 38200202997289c39454187da8f07c97eac70833 (diff) |
gpio: atmel_pio4: add support for PIO_PORTE
Add support for gpio PORT E, which is available on e.g. sama7g5 SoC.
Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/atmel_pio4.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpio/atmel_pio4.c b/drivers/gpio/atmel_pio4.c index bea609db9df..77a76c1d505 100644 --- a/drivers/gpio/atmel_pio4.c +++ b/drivers/gpio/atmel_pio4.c @@ -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); |