Go to the documentation of this file.
12 #ifndef __PINCTRL_MXS_H
13 #define __PINCTRL_MXS_H
22 #define MXS_PINCTRL_PIN(pin) PINCTRL_PIN(pin, #pin)
23 #define PINID(bank, pin) ((bank) * 32 + (pin))
32 #define MUXID_TO_PINID(m) PINID((m) >> 12 & 0xf, (m) >> 4 & 0xff)
33 #define MUXID_TO_MUXSEL(m) ((m) & 0xf)
35 #define PINID_TO_BANK(p) ((p) >> 5)
36 #define PINID_TO_PIN(p) ((p) % 32)
47 #define PULL_PRESENT (1 << 6)
49 #define VOL_PRESENT (1 << 4)
51 #define MA_PRESENT (1 << 2)
53 #define CONFIG_TO_PULL(c) ((c) >> PULL_SHIFT & 0x1)
54 #define CONFIG_TO_VOL(c) ((c) >> VOL_SHIFT & 0x1)
55 #define CONFIG_TO_MA(c) ((c) >> MA_SHIFT & 0x3)
79 const struct pinctrl_pin_desc *
pins;