pinmux.h (e5451c8f8330e03ad3cfa16048b4daf961af434f) | pinmux.h (a76edc89b100e4fefb2a5c00cd8cd557437659e7) |
---|---|
1/* 2 * Internal interface between the core pin control system and the 3 * pinmux portions 4 * 5 * Copyright (C) 2011 ST-Ericsson SA 6 * Written on behalf of Linaro for ST-Ericsson 7 * Based on bits of regulator core, gpio core and clk core 8 * --- 97 unchanged lines hidden (view full) --- 106} 107 108static inline void pinmux_init_device_debugfs(struct dentry *devroot, 109 struct pinctrl_dev *pctldev) 110{ 111} 112 113#endif | 1/* 2 * Internal interface between the core pin control system and the 3 * pinmux portions 4 * 5 * Copyright (C) 2011 ST-Ericsson SA 6 * Written on behalf of Linaro for ST-Ericsson 7 * Based on bits of regulator core, gpio core and clk core 8 * --- 97 unchanged lines hidden (view full) --- 106} 107 108static inline void pinmux_init_device_debugfs(struct dentry *devroot, 109 struct pinctrl_dev *pctldev) 110{ 111} 112 113#endif |
114 115#ifdef CONFIG_GENERIC_PINMUX_FUNCTIONS 116 117/** 118 * struct function_desc - generic function descriptor 119 * @name: name of the function 120 * @group_names: array of pin group names 121 * @num_group_names: number of pin group names 122 * @data: pin controller driver specific data 123 */ 124struct function_desc { 125 const char *name; 126 const char **group_names; 127 int num_group_names; 128 void *data; 129}; 130 131int pinmux_generic_get_function_count(struct pinctrl_dev *pctldev); 132 133const char * 134pinmux_generic_get_function_name(struct pinctrl_dev *pctldev, 135 unsigned int selector); 136 137int pinmux_generic_get_function_groups(struct pinctrl_dev *pctldev, 138 unsigned int selector, 139 const char * const **groups, 140 unsigned * const num_groups); 141 142struct function_desc *pinmux_generic_get_function(struct pinctrl_dev *pctldev, 143 unsigned int selector); 144 145int pinmux_generic_add_function(struct pinctrl_dev *pctldev, 146 const char *name, 147 const char **groups, 148 unsigned const num_groups, 149 void *data); 150 151int pinmux_generic_remove_function(struct pinctrl_dev *pctldev, 152 unsigned int selector); 153 154static inline int 155pinmux_generic_remove_last_function(struct pinctrl_dev *pctldev) 156{ 157 return pinmux_generic_remove_function(pctldev, 158 pctldev->num_functions - 1); 159} 160 161void pinmux_generic_free_functions(struct pinctrl_dev *pctldev); 162 163#else 164 165static inline void pinmux_generic_free_functions(struct pinctrl_dev *pctldev) 166{ 167} 168 169#endif /* CONFIG_GENERIC_PINMUX_FUNCTIONS */ |
|