Home
last modified time | relevance | path

Searched refs:sh_pfc (Results 1 – 21 of 21) sorted by relevance

/drivers/pinctrl/renesas/
Dcore.h19 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);
Dgpio.c30 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 *pfc, int(*setup)(struct sh_pfc_chip *), in sh_pfc_add_gpiochip()
[all …]
Dcore.c30 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()
291 static int sh_pfc_mark_to_enum(struct sh_pfc *pfc, u16 mark, int pos, in sh_pfc_mark_to_enum()
[all …]
Dpinctrl.c38 struct sh_pfc *pfc;
346 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_func_set_mux()
392 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_gpio_request_enable()
426 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()
481 static u32 sh_pfc_pinconf_find_drive_strength_reg(struct sh_pfc *pfc, in sh_pfc_pinconf_find_drive_strength_reg()
504 static int sh_pfc_pinconf_get_drive_strength(struct sh_pfc *pfc, in sh_pfc_pinconf_get_drive_strength()
529 static int sh_pfc_pinconf_set_drive_strength(struct sh_pfc *pfc, in sh_pfc_pinconf_set_drive_strength()
567 static bool sh_pfc_pinconf_validate(struct sh_pfc *pfc, unsigned int _pin, in sh_pfc_pinconf_validate()
598 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_pinconf_get()
[all …]
Dsh_pfc.h251 struct sh_pfc { struct
271 int (*init)(struct sh_pfc *pfc); argument
272 unsigned int (*get_bias)(struct sh_pfc *pfc, unsigned int pin);
273 void (*set_bias)(struct sh_pfc *pfc, unsigned int pin,
275 int (*pin_to_pocctrl)(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl);
276 void __iomem * (*pin_to_portcr)(struct sh_pfc *pfc, unsigned int pin);
785 rcar_pin_to_bias_reg(const struct sh_pfc *pfc, unsigned int pin,
787 unsigned int rcar_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin);
788 void rcar_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin,
791 unsigned int rmobile_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin);
[all …]
Dpfc-sh73a0.c4231 struct sh_pfc *pfc = reg->reg_data; in sh73a0_vccq_mc0_endisable()
4264 struct sh_pfc *pfc = reg->reg_data; in sh73a0_vccq_mc0_is_enabled()
4317 static void __iomem *sh73a0_pin_to_portcr(struct sh_pfc *pfc, unsigned int pin) in sh73a0_pin_to_portcr()
4326 static int sh73a0_pinmux_soc_init(struct sh_pfc *pfc) in sh73a0_pinmux_soc_init()
Dpfc-r8a77995.c2845 static int r8a77995_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) in r8a77995_pin_to_pocctrl()
3075 r8a77995_pin_to_bias_reg(const struct sh_pfc *pfc, unsigned int pin, in r8a77995_pin_to_bias_reg()
3105 static unsigned int r8a77995_pinmux_get_bias(struct sh_pfc *pfc, in r8a77995_pinmux_get_bias()
3123 static void r8a77995_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a77995_pinmux_set_bias()
Dpfc-r8a7794.c5624 static int r8a7794_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) in r8a7794_pin_to_pocctrl()
5926 static int r8a7794_pinmux_soc_init(struct sh_pfc *pfc) in r8a7794_pinmux_soc_init()
Dpfc-r8a7790.c5990 static int r8a7790_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) in r8a7790_pin_to_pocctrl()
6283 static int r8a7790_pinmux_soc_init(struct sh_pfc *pfc) in r8a7790_pinmux_soc_init()
Dpfc-r8a73a4.c2658 static void __iomem *r8a73a4_pin_to_portcr(struct sh_pfc *pfc, unsigned int pin) in r8a73a4_pin_to_portcr()
Dpfc-r8a77970.c2499 static int r8a77970_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, in r8a77970_pin_to_pocctrl()
Dpfc-r8a7740.c3684 static void __iomem *r8a7740_pin_to_portcr(struct sh_pfc *pfc, unsigned int pin) in r8a7740_pin_to_portcr()
Dpfc-r8a77980.c2943 static int r8a77980_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, in r8a77980_pin_to_pocctrl()
Dpfc-r8a77470.c3423 static int r8a77470_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, in r8a77470_pin_to_pocctrl()
Dpfc-r8a779a0.c4065 static int r8a779a0_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, in r8a779a0_pin_to_pocctrl()
Dpfc-r8a77990.c5118 static int r8a77990_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, in r8a77990_pin_to_pocctrl()
Dpfc-r8a77950.c5563 static int r8a77950_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, in r8a77950_pin_to_pocctrl()
Dpfc-r8a7791.c6675 static int r8a7791_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) in r8a7791_pin_to_pocctrl()
Dpfc-r8a7796.c5994 static int r8a7796_pin_to_pocctrl(struct sh_pfc *pfc, in r8a7796_pin_to_pocctrl()
Dpfc-r8a77965.c6251 static int r8a77965_pin_to_pocctrl(struct sh_pfc *pfc, in r8a77965_pin_to_pocctrl()
Dpfc-r8a77951.c6043 static int r8a77951_pin_to_pocctrl(struct sh_pfc *pfc, in r8a77951_pin_to_pocctrl()