diff options
Diffstat (limited to 'firmware/target/arm/imx233/pinctrl-imx233.h')
-rw-r--r-- | firmware/target/arm/imx233/pinctrl-imx233.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/imx233/pinctrl-imx233.h b/firmware/target/arm/imx233/pinctrl-imx233.h index c731490e38..88d08430ad 100644 --- a/firmware/target/arm/imx233/pinctrl-imx233.h +++ b/firmware/target/arm/imx233/pinctrl-imx233.h | |||
@@ -54,7 +54,7 @@ const char *imx233_pinctrl_blame(unsigned bank, unsigned pin); | |||
54 | #define imx233_pinctrl_blame(...) NULL | 54 | #define imx233_pinctrl_blame(...) NULL |
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | typedef void (*pin_irq_cb_t)(int bank, int pin); | 57 | typedef void (*pin_irq_cb_t)(int bank, int pin, intptr_t user); |
58 | 58 | ||
59 | static inline void imx233_pinctrl_init(void) | 59 | static inline void imx233_pinctrl_init(void) |
60 | { | 60 | { |
@@ -69,7 +69,7 @@ static inline void imx233_pinctrl_set_drive(unsigned bank, unsigned pin, unsigne | |||
69 | 69 | ||
70 | static inline void imx233_pinctrl_enable_gpio(unsigned bank, unsigned pin, bool enable) | 70 | static inline void imx233_pinctrl_enable_gpio(unsigned bank, unsigned pin, bool enable) |
71 | { | 71 | { |
72 | if(enable) | 72 | if(enable) |
73 | HW_PINCTRL_DOEn_SET(bank) = 1 << pin; | 73 | HW_PINCTRL_DOEn_SET(bank) = 1 << pin; |
74 | else | 74 | else |
75 | HW_PINCTRL_DOEn_CLR(bank) = 1 << pin; | 75 | HW_PINCTRL_DOEn_CLR(bank) = 1 << pin; |
@@ -128,7 +128,7 @@ static inline void imx233_pinctrl_enable_pullup_mask(unsigned bank, uint32_t pin | |||
128 | 128 | ||
129 | /** On irq, the pin irq interrupt is disable and then cb is called; | 129 | /** On irq, the pin irq interrupt is disable and then cb is called; |
130 | * the setup_pin_irq function needs to be called again to enable it again */ | 130 | * the setup_pin_irq function needs to be called again to enable it again */ |
131 | void imx233_pinctrl_setup_irq(int bank, int pin, bool enable_int, | 131 | void imx233_pinctrl_setup_irq(unsigned bank, unsigned pin, bool enable_int, |
132 | bool level, bool polarity, pin_irq_cb_t cb); | 132 | bool level, bool polarity, pin_irq_cb_t cb, intptr_t user); |
133 | 133 | ||
134 | #endif /* __PINCTRL_IMX233_H__ */ | 134 | #endif /* __PINCTRL_IMX233_H__ */ |