Skip to content

Commit 32f1370

Browse files
chrtagalak
authored andcommitted
gpio: silabs gecko: Add support for more ports
The gecko gpio driver can now utilize ports a to k. Signed-off-by: Christian Taedcke <[email protected]>
1 parent a30fa3d commit 32f1370

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

drivers/gpio/Kconfig.gecko

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,29 @@ config GPIO_GECKO_PORTF
4747
help
4848
Enable Port F.
4949

50+
config GPIO_GECKO_PORTG
51+
bool "Port G"
52+
help
53+
Enable Port G.
54+
55+
config GPIO_GECKO_PORTH
56+
bool "Port H"
57+
help
58+
Enable Port H.
59+
60+
config GPIO_GECKO_PORTI
61+
bool "Port I"
62+
help
63+
Enable Port I.
64+
65+
config GPIO_GECKO_PORTJ
66+
bool "Port J"
67+
help
68+
Enable Port J.
69+
70+
config GPIO_GECKO_PORTK
71+
bool "Port K"
72+
help
73+
Enable Port K.
74+
5075
endif # GPIO_GECKO

drivers/gpio/gpio_gecko.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,3 +361,23 @@ GPIO_PORT_INIT(e, E)
361361
#ifdef CONFIG_GPIO_GECKO_PORTF
362362
GPIO_PORT_INIT(f, F)
363363
#endif /* CONFIG_GPIO_GECKO_PORTF */
364+
365+
#ifdef CONFIG_GPIO_GECKO_PORTG
366+
GPIO_PORT_INIT(g, G)
367+
#endif /* CONFIG_GPIO_GECKO_PORTG */
368+
369+
#ifdef CONFIG_GPIO_GECKO_PORTH
370+
GPIO_PORT_INIT(h, H)
371+
#endif /* CONFIG_GPIO_GECKO_PORTH */
372+
373+
#ifdef CONFIG_GPIO_GECKO_PORTI
374+
GPIO_PORT_INIT(i, I)
375+
#endif /* CONFIG_GPIO_GECKO_PORTI */
376+
377+
#ifdef CONFIG_GPIO_GECKO_PORTJ
378+
GPIO_PORT_INIT(j, J)
379+
#endif /* CONFIG_GPIO_GECKO_PORTJ */
380+
381+
#ifdef CONFIG_GPIO_GECKO_PORTK
382+
GPIO_PORT_INIT(k, K)
383+
#endif /* CONFIG_GPIO_GECKO_PORTK */

0 commit comments

Comments
 (0)