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}.
This commit is contained in:
David Sidrane 2023-11-14 06:45:51 -08:00 committed by Xiang Xiao
parent 9906163beb
commit 982e3e01f0

View File

@ -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;