/kernel/linux/linux-5.10/drivers/pinctrl/renesas/ |
H A D | core.h | 12 #include "sh_pfc.h" 19 int sh_pfc_register_gpiochip(struct sh_pfc *pfc); 21 int sh_pfc_register_pinctrl(struct sh_pfc *pfc); 26 u32 sh_pfc_read(struct sh_pfc *pfc, u32 reg); 27 void sh_pfc_write(struct sh_pfc *pfc, u32 reg, u32 data); 29 int sh_pfc_get_pin_index(struct sh_pfc *pfc, unsigned int pin); 30 int sh_pfc_config_mux(struct sh_pfc *pfc, unsigned mark, int pinmux_type); 33 sh_pfc_pin_to_bias_reg(const struct sh_pfc *pfc, unsigned int pin,
|
H A D | gpio.c | 30 struct sh_pfc *pfc; 38 static struct sh_pfc *gpio_to_pfc(struct gpio_chip *gc) in gpio_to_pfc() 75 struct sh_pfc *pfc = chip->pfc; in gpio_setup_data_reg() 97 struct sh_pfc *pfc = chip->pfc; in gpio_setup_data_regs() 133 struct sh_pfc *pfc = gpio_to_pfc(gc); in gpio_pin_request() 200 struct sh_pfc *pfc = gpio_to_pfc(gc); in gpio_pin_to_irq() 217 struct sh_pfc *pfc = chip->pfc; in gpio_pin_setup() 255 struct sh_pfc *pfc = gpio_to_pfc(gc); in gpio_function_request() 275 struct sh_pfc *pfc = chip->pfc; in gpio_function_setup() 294 sh_pfc_add_gpiochip(struct sh_pfc *pf [all...] |
H A D | core.c | 30 static int sh_pfc_map_resources(struct sh_pfc *pfc, in sh_pfc_map_resources() 87 static void __iomem *sh_pfc_phys_to_virt(struct sh_pfc *pfc, u32 reg) in sh_pfc_phys_to_virt() 110 int sh_pfc_get_pin_index(struct sh_pfc *pfc, unsigned int pin) in sh_pfc_get_pin_index() 172 u32 sh_pfc_read(struct sh_pfc *pfc, u32 reg) in sh_pfc_read() 177 void sh_pfc_write(struct sh_pfc *pfc, u32 reg, u32 data) in sh_pfc_write() 187 static void sh_pfc_config_reg_helper(struct sh_pfc *pfc, in sh_pfc_config_reg_helper() 208 static void sh_pfc_write_config_reg(struct sh_pfc *pfc, in sh_pfc_write_config_reg() 237 static int sh_pfc_get_config_reg(struct sh_pfc *pfc, u16 enum_id, in sh_pfc_get_config_reg() 283 static int sh_pfc_mark_to_enum(struct sh_pfc *pfc, u16 mark, int pos, in sh_pfc_mark_to_enum() 306 int sh_pfc_config_mux(struct sh_pfc *pf [all...] |
H A D | pinctrl.c | 38 struct sh_pfc *pfc; 346 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_func_set_mux() 393 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_gpio_request_enable() 427 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_gpio_disable_free() 445 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_gpio_set_direction() 483 static u32 sh_pfc_pinconf_find_drive_strength_reg(struct sh_pfc *pfc, in sh_pfc_pinconf_find_drive_strength_reg() 506 static int sh_pfc_pinconf_get_drive_strength(struct sh_pfc *pfc, in sh_pfc_pinconf_get_drive_strength() 531 static int sh_pfc_pinconf_set_drive_strength(struct sh_pfc *pfc, in sh_pfc_pinconf_set_drive_strength() 569 static bool sh_pfc_pinconf_validate(struct sh_pfc *pfc, unsigned int _pin, in sh_pfc_pinconf_validate() 600 struct sh_pfc *pf in sh_pfc_pinconf_get() [all...] |
H A D | sh_pfc.h | 242 struct sh_pfc { struct 262 int (*init)(struct sh_pfc *pfc); 263 unsigned int (*get_bias)(struct sh_pfc *pfc, unsigned int pin); 264 void (*set_bias)(struct sh_pfc *pfc, unsigned int pin, 266 int (*pin_to_pocctrl)(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl);
|
H A D | pfc-sh73a0.c | 17 #include "sh_pfc.h" 4232 struct sh_pfc *pfc = reg->reg_data; in sh73a0_vccq_mc0_endisable() 4265 struct sh_pfc *pfc = reg->reg_data; in sh73a0_vccq_mc0_is_enabled() 4323 static unsigned int sh73a0_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin) in sh73a0_pinmux_get_bias() 4340 static void sh73a0_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in sh73a0_pinmux_set_bias() 4363 static int sh73a0_pinmux_soc_init(struct sh_pfc *pfc) in sh73a0_pinmux_soc_init()
|
H A D | pfc-r8a7740.c | 12 #include "sh_pfc.h" 3689 static void __iomem *r8a7740_pinmux_portcr(struct sh_pfc *pfc, unsigned int pin) in r8a7740_pinmux_portcr() 3704 static unsigned int r8a7740_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin) in r8a7740_pinmux_get_bias() 3720 static void r8a7740_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a7740_pinmux_set_bias()
|
H A D | pfc-r8a73a4.c | 11 #include "sh_pfc.h" 2663 static unsigned int r8a73a4_pinmux_get_bias(struct sh_pfc *pfc, in r8a73a4_pinmux_get_bias() 2681 static void r8a73a4_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a73a4_pinmux_set_bias()
|
H A D | pfc-r8a77990.c | 18 #include "sh_pfc.h" 5004 static int r8a77990_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, in r8a77990_pin_to_pocctrl() 5228 static unsigned int r8a77990_pinmux_get_bias(struct sh_pfc *pfc, in r8a77990_pinmux_get_bias() 5246 static void r8a77990_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a77990_pinmux_set_bias()
|
H A D | pfc-r8a7778.c | 20 #include "sh_pfc.h" 3119 static unsigned int r8a7778_pinmux_get_bias(struct sh_pfc *pfc, in r8a7778_pinmux_get_bias() 3138 static void r8a7778_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a7778_pinmux_set_bias()
|
H A D | pfc-r8a7794.c | 15 #include "sh_pfc.h" 5564 static int r8a7794_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) in r8a7794_pin_to_pocctrl() 5588 static int r8a7794_pinmux_soc_init(struct sh_pfc *pfc) in r8a7794_pinmux_soc_init()
|
H A D | pfc-r8a7790.c | 17 #include "sh_pfc.h" 5841 static int r8a7790_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) in r8a7790_pin_to_pocctrl() 5856 static int r8a7790_pinmux_soc_init(struct sh_pfc *pfc) in r8a7790_pinmux_soc_init()
|
H A D | pfc-r8a77951.c | 13 #include "sh_pfc.h" 5935 static int r8a77951_pin_to_pocctrl(struct sh_pfc *pfc, in r8a77951_pin_to_pocctrl() 6193 static unsigned int r8a77951_pinmux_get_bias(struct sh_pfc *pfc, in r8a77951_pinmux_get_bias() 6211 static void r8a77951_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a77951_pinmux_set_bias()
|
H A D | pfc-r8a77965.c | 19 #include "sh_pfc.h" 6137 static int r8a77965_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) in r8a77965_pin_to_pocctrl() 6394 static unsigned int r8a77965_pinmux_get_bias(struct sh_pfc *pfc, in r8a77965_pinmux_get_bias() 6412 static void r8a77965_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a77965_pinmux_set_bias()
|
H A D | pfc-r8a7796.c | 18 #include "sh_pfc.h" 5884 static int r8a7796_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) in r8a7796_pin_to_pocctrl() 6141 static unsigned int r8a7796_pinmux_get_bias(struct sh_pfc *pfc, in r8a7796_pinmux_get_bias() 6159 static void r8a7796_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a7796_pinmux_set_bias()
|
H A D | pfc-r8a77950.c | 12 #include "sh_pfc.h" 5564 static int r8a77950_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, in r8a77950_pin_to_pocctrl() 5822 static unsigned int r8a77950_pinmux_get_bias(struct sh_pfc *pfc, in r8a77950_pinmux_get_bias() 5840 static void r8a77950_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a77950_pinmux_set_bias()
|
H A D | pfc-r8a77970.c | 20 #include "sh_pfc.h" 2480 static int r8a77970_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, in r8a77970_pin_to_pocctrl()
|
H A D | pfc-r8a77980.c | 20 #include "sh_pfc.h" 2924 static int r8a77980_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, in r8a77980_pin_to_pocctrl()
|
/kernel/linux/linux-6.6/drivers/pinctrl/renesas/ |
H A D | core.h | 12 #include "sh_pfc.h" 19 int sh_pfc_register_gpiochip(struct sh_pfc *pfc); 21 int sh_pfc_register_pinctrl(struct sh_pfc *pfc); 26 u32 sh_pfc_read(struct sh_pfc *pfc, u32 reg); 27 void sh_pfc_write(struct sh_pfc *pfc, u32 reg, u32 data); 29 int sh_pfc_get_pin_index(struct sh_pfc *pfc, unsigned int pin); 30 int sh_pfc_config_mux(struct sh_pfc *pfc, unsigned mark, int pinmux_type);
|
H A D | gpio.c | 29 struct sh_pfc *pfc; 37 static struct sh_pfc *gpio_to_pfc(struct gpio_chip *gc) in gpio_to_pfc() 74 struct sh_pfc *pfc = chip->pfc; in gpio_setup_data_reg() 96 struct sh_pfc *pfc = chip->pfc; in gpio_setup_data_regs() 132 struct sh_pfc *pfc = gpio_to_pfc(gc); in gpio_pin_request() 199 struct sh_pfc *pfc = gpio_to_pfc(gc); in gpio_pin_to_irq() 216 struct sh_pfc *pfc = chip->pfc; in gpio_pin_setup() 254 struct sh_pfc *pfc = gpio_to_pfc(gc); in gpio_function_request() 274 struct sh_pfc *pfc = chip->pfc; in gpio_function_setup() 293 sh_pfc_add_gpiochip(struct sh_pfc *pf [all...] |
H A D | pinctrl.c | 39 struct sh_pfc *pfc; 326 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_func_set_mux() 372 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_gpio_request_enable() 406 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_gpio_disable_free() 425 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_gpio_set_direction() 461 static u32 sh_pfc_pinconf_find_drive_strength_reg(struct sh_pfc *pfc, in sh_pfc_pinconf_find_drive_strength_reg() 484 static int sh_pfc_pinconf_get_drive_strength(struct sh_pfc *pfc, in sh_pfc_pinconf_get_drive_strength() 504 static int sh_pfc_pinconf_set_drive_strength(struct sh_pfc *pfc, in sh_pfc_pinconf_set_drive_strength() 542 static bool sh_pfc_pinconf_validate(struct sh_pfc *pfc, unsigned int _pin, in sh_pfc_pinconf_validate() 573 struct sh_pfc *pf in sh_pfc_pinconf_get() [all...] |
H A D | core.c | 30 static int sh_pfc_map_resources(struct sh_pfc *pfc, in sh_pfc_map_resources() 87 static void __iomem *sh_pfc_phys_to_virt(struct sh_pfc *pfc, u32 reg) in sh_pfc_phys_to_virt() 110 int sh_pfc_get_pin_index(struct sh_pfc *pfc, unsigned int pin) in sh_pfc_get_pin_index() 172 u32 sh_pfc_read(struct sh_pfc *pfc, u32 reg) in sh_pfc_read() 177 static void sh_pfc_unlock_reg(struct sh_pfc *pfc, u32 reg, u32 data) in sh_pfc_unlock_reg() 193 void sh_pfc_write(struct sh_pfc *pfc, u32 reg, u32 data) in sh_pfc_write() 199 static void sh_pfc_config_reg_helper(struct sh_pfc *pfc, in sh_pfc_config_reg_helper() 220 static void sh_pfc_write_config_reg(struct sh_pfc *pfc, in sh_pfc_write_config_reg() 245 static int sh_pfc_get_config_reg(struct sh_pfc *pfc, u16 enum_id, in sh_pfc_get_config_reg() 293 static int sh_pfc_mark_to_enum(struct sh_pfc *pf [all...] |
H A D | sh_pfc.h | 230 struct sh_pfc { struct 250 int (*init)(struct sh_pfc *pfc); 251 unsigned int (*get_bias)(struct sh_pfc *pfc, unsigned int pin); 252 void (*set_bias)(struct sh_pfc *pfc, unsigned int pin, 768 unsigned int rcar_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin); 769 void rcar_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, 772 unsigned int rmobile_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin); 773 void rmobile_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin,
|
H A D | pfc-sh73a0.c | 16 #include "sh_pfc.h" 4027 struct sh_pfc *pfc = reg->reg_data; in sh73a0_vccq_mc0_endisable() 4060 struct sh_pfc *pfc = reg->reg_data; in sh73a0_vccq_mc0_is_enabled() 4122 static int sh73a0_pinmux_soc_init(struct sh_pfc *pfc) in sh73a0_pinmux_soc_init()
|
H A D | pfc-r8a77995.c | 18 #include "sh_pfc.h" 3098 r8a77995_pin_to_bias_reg(const struct sh_pfc *pfc, unsigned int pin, in r8a77995_pin_to_bias_reg() 3128 static unsigned int r8a77995_pinmux_get_bias(struct sh_pfc *pfc, in r8a77995_pinmux_get_bias() 3146 static void r8a77995_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a77995_pinmux_set_bias()
|