From 982e3e01f0748420fa7402ce15db011ddf67839d Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Tue, 14 Nov 2023 06:45:51 -0800 Subject: [PATCH] imxrt:gpio disable imxrt_gpio_select for the 1170 The 1170 usage of the GPR registers is to select the between GPIO{2|3} or CM7_GPIO{2|3} where as the 1060 it selected ports between 1-6,2-7..4-9 and uses different GPR registers. For the 1170 we are defaulting to GPIO{2|3} and not supporting the swtich to CM7_GPIO{2|3}. --- arch/arm/src/imxrt/imxrt_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/imxrt/imxrt_gpio.c b/arch/arm/src/imxrt/imxrt_gpio.c index b51c1a69af..0b2b832dab 100644 --- a/arch/arm/src/imxrt/imxrt_gpio.c +++ b/arch/arm/src/imxrt/imxrt_gpio.c @@ -255,7 +255,7 @@ static inline bool imxrt_gpio_getinput(int port, int pin) static inline int imxrt_gpio_select(int port, int pin) { -#if IMXRT_GPIO_NPORTS > 5 +#if IMXRT_GPIO_NPORTS > 5 && defined(CONFIG_IMXRT_IOMUX_VER1) uint32_t gpr = port; uint32_t setbits = 1 << pin; uint32_t clearbits = 1 << pin;