You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/12/07 11:48:27 UTC
(nuttx) 02/08: imxrt:gpio disable imxrt_gpio_select for the 1170
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 982e3e01f0748420fa7402ce15db011ddf67839d
Author: David Sidrane <Da...@NscDg.com>
AuthorDate: Tue Nov 14 06:45:51 2023 -0800
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;