drivers: gpio: gecko: Simplify device support
Simplify the distinction between Series 0/1 and Series 2. Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
This commit is contained in:
parent
09efa2c187
commit
5645adb251
1 changed files with 1 additions and 5 deletions
|
@ -26,11 +26,7 @@
|
|||
#if DT_NODE_HAS_PROP(id, peripheral_id)
|
||||
#define GET_GECKO_GPIO_INDEX(id) DT_INST_PROP(id, peripheral_id)
|
||||
#else
|
||||
#if defined(CONFIG_SOC_SERIES_EFR32BG22) || \
|
||||
defined(CONFIG_SOC_SERIES_EFR32BG27) || \
|
||||
defined(CONFIG_SOC_SERIES_EFR32MG21) || \
|
||||
defined(CONFIG_SOC_SERIES_EFR32MG24) || \
|
||||
defined(CONFIG_SOC_SERIES_EFR32ZG23)
|
||||
#if defined(CONFIG_SOC_FAMILY_SILABS_S2)
|
||||
#define GECKO_GPIO_PORT_ADDR_SPACE_SIZE sizeof(GPIO_PORT_TypeDef)
|
||||
#else
|
||||
#define GECKO_GPIO_PORT_ADDR_SPACE_SIZE sizeof(GPIO_P_TypeDef)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue