imx9_gpioirq: Fix testing of ICR field from pinset
icr is tested below with macros like GPIO_INT_LOWLEVEL et al. Those macros are shifted left by GPIO_INTCFG_SHIFT, so the temporary icr variable should not be shifted right.
This commit is contained in:
parent
09a6c400f6
commit
169dd50a08
|
@ -236,8 +236,8 @@ int imx9_gpioirq_enable(gpio_pinset_t pinset)
|
|||
{
|
||||
uint32_t port = (pinset & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT;
|
||||
uint32_t pin = (pinset & GPIO_PIN_MASK) >> GPIO_PIN_SHIFT;
|
||||
uint32_t icr = (pinset & GPIO_INTCFG_MASK) >> GPIO_INTCFG_SHIFT;
|
||||
uint32_t both = (pinset & GPIO_INTBOTHCFG_MASK) >> GPIO_INTBOTHCFG_SHIFT;
|
||||
uint32_t icr = (pinset & GPIO_INTCFG_MASK);
|
||||
uint32_t regval;
|
||||
uintptr_t regaddr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue