diff options
Diffstat (limited to 'include/linux/pinctrl/pinctrl.h')
| -rw-r--r-- | include/linux/pinctrl/pinctrl.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h index cc8e1aff0e28..66e4697516de 100644 --- a/include/linux/pinctrl/pinctrl.h +++ b/include/linux/pinctrl/pinctrl.h | |||
| @@ -24,6 +24,7 @@ struct pinctrl_dev; | |||
| 24 | struct pinctrl_map; | 24 | struct pinctrl_map; |
| 25 | struct pinmux_ops; | 25 | struct pinmux_ops; |
| 26 | struct pinconf_ops; | 26 | struct pinconf_ops; |
| 27 | struct pin_config_item; | ||
| 27 | struct gpio_chip; | 28 | struct gpio_chip; |
| 28 | struct device_node; | 29 | struct device_node; |
| 29 | 30 | ||
| @@ -117,6 +118,12 @@ struct pinctrl_ops { | |||
| 117 | * @confops: pin config operations vtable, if you support pin configuration in | 118 | * @confops: pin config operations vtable, if you support pin configuration in |
| 118 | * your driver | 119 | * your driver |
| 119 | * @owner: module providing the pin controller, used for refcounting | 120 | * @owner: module providing the pin controller, used for refcounting |
| 121 | * @num_custom_params: Number of driver-specific custom parameters to be parsed | ||
| 122 | * from the hardware description | ||
| 123 | * @custom_params: List of driver_specific custom parameters to be parsed from | ||
| 124 | * the hardware description | ||
| 125 | * @custom_conf_items: Information how to print @params in debugfs, must be | ||
| 126 | * the same size as the @custom_params, i.e. @num_custom_params | ||
| 120 | */ | 127 | */ |
| 121 | struct pinctrl_desc { | 128 | struct pinctrl_desc { |
| 122 | const char *name; | 129 | const char *name; |
| @@ -126,6 +133,11 @@ struct pinctrl_desc { | |||
| 126 | const struct pinmux_ops *pmxops; | 133 | const struct pinmux_ops *pmxops; |
| 127 | const struct pinconf_ops *confops; | 134 | const struct pinconf_ops *confops; |
| 128 | struct module *owner; | 135 | struct module *owner; |
| 136 | #ifdef CONFIG_GENERIC_PINCONF | ||
| 137 | unsigned int num_custom_params; | ||
| 138 | const struct pinconf_generic_params *custom_params; | ||
| 139 | const struct pin_config_item *custom_conf_items; | ||
| 140 | #endif | ||
| 129 | }; | 141 | }; |
| 130 | 142 | ||
| 131 | /* External interface to pin controller */ | 143 | /* External interface to pin controller */ |
