Skip to content

Commit 70e40ba

Browse files
kr-tcasaroli
authored andcommitted
Add RT1064 GPIO config (#103)
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
1 parent da9f1e5 commit 70e40ba

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/ocre/ocre_gpio/ocre_gpio.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,18 @@ int ocre_gpio_init(void) {
104104
#elif defined(CONFIG_BOARD_W5500_EVB_PICO2)
105105
INIT_GPIO_PORT_NAMED(0, DT_NODELABEL(gpio0), "GPIO0");
106106

107+
#elif defined(CONFIG_BOARD_MIMXRT1064_EVK)
108+
// No gpio0 for some reason? Will be annoying for some APIs
109+
INIT_GPIO_PORT_NAMED(0, DT_NODELABEL(gpio1), "GPIO1");
110+
INIT_GPIO_PORT_NAMED(1, DT_NODELABEL(gpio2), "GPIO2");
111+
INIT_GPIO_PORT_NAMED(2, DT_NODELABEL(gpio3), "GPIO3");
112+
INIT_GPIO_PORT_NAMED(3, DT_NODELABEL(gpio4), "GPIO4");
113+
INIT_GPIO_PORT_NAMED(4, DT_NODELABEL(gpio5), "GPIO5");
114+
INIT_GPIO_PORT_NAMED(5, DT_NODELABEL(gpio6), "GPIO6");
115+
INIT_GPIO_PORT_NAMED(6, DT_NODELABEL(gpio7), "GPIO7");
116+
INIT_GPIO_PORT_NAMED(7, DT_NODELABEL(gpio8), "GPIO8");
117+
INIT_GPIO_PORT_NAMED(8, DT_NODELABEL(gpio9), "GPIO9");
118+
107119
#else
108120
// Generic fallback
109121
#if DT_NODE_EXISTS(DT_NODELABEL(gpio0))

0 commit comments

Comments
 (0)