Go to the documentation of this file.
12 #ifndef __LINUX_PINCTRL_MACHINE_H
13 #define __LINUX_PINCTRL_MACHINE_H
81 #define PIN_MAP_DUMMY_STATE(dev, state) \
85 .type = PIN_MAP_TYPE_DUMMY_STATE, \
88 #define PIN_MAP_MUX_GROUP(dev, state, pinctrl, grp, func) \
92 .type = PIN_MAP_TYPE_MUX_GROUP, \
93 .ctrl_dev_name = pinctrl, \
100 #define PIN_MAP_MUX_GROUP_DEFAULT(dev, pinctrl, grp, func) \
101 PIN_MAP_MUX_GROUP(dev, PINCTRL_STATE_DEFAULT, pinctrl, grp, func)
103 #define PIN_MAP_MUX_GROUP_HOG(dev, state, grp, func) \
104 PIN_MAP_MUX_GROUP(dev, state, dev, grp, func)
106 #define PIN_MAP_MUX_GROUP_HOG_DEFAULT(dev, grp, func) \
107 PIN_MAP_MUX_GROUP(dev, PINCTRL_STATE_DEFAULT, dev, grp, func)
109 #define PIN_MAP_CONFIGS_PIN(dev, state, pinctrl, pin, cfgs) \
113 .type = PIN_MAP_TYPE_CONFIGS_PIN, \
114 .ctrl_dev_name = pinctrl, \
116 .group_or_pin = pin, \
118 .num_configs = ARRAY_SIZE(cfgs), \
122 #define PIN_MAP_CONFIGS_PIN_DEFAULT(dev, pinctrl, pin, cfgs) \
123 PIN_MAP_CONFIGS_PIN(dev, PINCTRL_STATE_DEFAULT, pinctrl, pin, cfgs)
125 #define PIN_MAP_CONFIGS_PIN_HOG(dev, state, pin, cfgs) \
126 PIN_MAP_CONFIGS_PIN(dev, state, dev, pin, cfgs)
128 #define PIN_MAP_CONFIGS_PIN_HOG_DEFAULT(dev, pin, cfgs) \
129 PIN_MAP_CONFIGS_PIN(dev, PINCTRL_STATE_DEFAULT, dev, pin, cfgs)
131 #define PIN_MAP_CONFIGS_GROUP(dev, state, pinctrl, grp, cfgs) \
135 .type = PIN_MAP_TYPE_CONFIGS_GROUP, \
136 .ctrl_dev_name = pinctrl, \
138 .group_or_pin = grp, \
140 .num_configs = ARRAY_SIZE(cfgs), \
144 #define PIN_MAP_CONFIGS_GROUP_DEFAULT(dev, pinctrl, grp, cfgs) \
145 PIN_MAP_CONFIGS_GROUP(dev, PINCTRL_STATE_DEFAULT, pinctrl, grp, cfgs)
147 #define PIN_MAP_CONFIGS_GROUP_HOG(dev, state, grp, cfgs) \
148 PIN_MAP_CONFIGS_GROUP(dev, state, dev, grp, cfgs)
150 #define PIN_MAP_CONFIGS_GROUP_HOG_DEFAULT(dev, grp, cfgs) \
151 PIN_MAP_CONFIGS_GROUP(dev, PINCTRL_STATE_DEFAULT, dev, grp, cfgs)
153 #ifdef CONFIG_PINCTRL