pinctrl: renesas: Add R8A779F0 S4 PFC tables
Add pinctrl tables for R8A779F0 S4 SoC. Based on Linux next 20230228 PFC tables tables up to commit 058f4df42121 ("Add linux-next specific files for 20230228") Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Signed-off-by: LUU HOAI <hoai.luu.ub@renesas.com> Signed-off-by: Hai Pham <hai.pham.ud@renesas.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> [Marek: Use RCAR_64 Kconfig, sync with Linux next 20230228]
This commit is contained in:
parent
17207aa84f
commit
1b1834c037
6 changed files with 2126 additions and 1 deletions
|
@ -569,7 +569,7 @@ static int sh_gpio_get_value(struct pinmux_info *gpioc, unsigned gpio)
|
|||
if (!gpioc || get_data_reg(gpioc, gpio, &dr, &bit) != 0)
|
||||
return -1;
|
||||
|
||||
if (IS_ENABLED(CONFIG_RCAR_GEN3) &&
|
||||
if (IS_ENABLED(CONFIG_RCAR_64) &&
|
||||
((gpioc->gpios[gpio].flags & PINMUX_FLAG_TYPE) == PINMUX_TYPE_INPUT))
|
||||
offset += 4;
|
||||
|
||||
|
|
|
@ -119,6 +119,12 @@ config PINCTRL_PFC_R8A779A0
|
|||
help
|
||||
Support pin multiplexing control on Renesas RCar Gen3 R8A779A0 SoCs.
|
||||
|
||||
config PINCTRL_PFC_R8A779F0
|
||||
bool "Renesas RCar Gen4 R8A779F0 pin control driver"
|
||||
depends on PINCTRL_PFC
|
||||
help
|
||||
Support pin multiplexing control on Renesas RCar Gen4 R8A779F0 SoCs.
|
||||
|
||||
config PINCTRL_PFC_R7S72100
|
||||
bool "Renesas RZ/A1 R7S72100 pin control driver"
|
||||
depends on CPU_RZA1
|
||||
|
|
|
@ -17,4 +17,5 @@ obj-$(CONFIG_PINCTRL_PFC_R8A77980) += pfc-r8a77980.o
|
|||
obj-$(CONFIG_PINCTRL_PFC_R8A77990) += pfc-r8a77990.o
|
||||
obj-$(CONFIG_PINCTRL_PFC_R8A77995) += pfc-r8a77995.o
|
||||
obj-$(CONFIG_PINCTRL_PFC_R8A779A0) += pfc-r8a779a0.o
|
||||
obj-$(CONFIG_PINCTRL_PFC_R8A779F0) += pfc-r8a779f0.o
|
||||
obj-$(CONFIG_PINCTRL_PFC_R7S72100) += pfc-r7s72100.o
|
||||
|
|
2106
drivers/pinctrl/renesas/pfc-r8a779f0.c
Normal file
2106
drivers/pinctrl/renesas/pfc-r8a779f0.c
Normal file
File diff suppressed because it is too large
Load diff
|
@ -43,6 +43,7 @@ enum sh_pfc_model {
|
|||
SH_PFC_R8A77990,
|
||||
SH_PFC_R8A77995,
|
||||
SH_PFC_R8A779A0,
|
||||
SH_PFC_R8A779F0,
|
||||
};
|
||||
|
||||
struct sh_pfc_pin_config {
|
||||
|
@ -1025,6 +1026,10 @@ static int sh_pfc_pinctrl_probe(struct udevice *dev)
|
|||
if (model == SH_PFC_R8A779A0)
|
||||
priv->pfc.info = &r8a779a0_pinmux_info;
|
||||
#endif
|
||||
#ifdef CONFIG_PINCTRL_PFC_R8A779F0
|
||||
if (model == SH_PFC_R8A779F0)
|
||||
priv->pfc.info = &r8a779f0_pinmux_info;
|
||||
#endif
|
||||
|
||||
priv->pmx.pfc = &priv->pfc;
|
||||
sh_pfc_init_ranges(&priv->pfc);
|
||||
|
@ -1142,6 +1147,12 @@ static const struct udevice_id sh_pfc_pinctrl_ids[] = {
|
|||
.data = SH_PFC_R8A779A0,
|
||||
},
|
||||
#endif
|
||||
#ifdef CONFIG_PINCTRL_PFC_R8A779F0
|
||||
{
|
||||
.compatible = "renesas,pfc-r8a779f0",
|
||||
.data = SH_PFC_R8A779F0,
|
||||
},
|
||||
#endif
|
||||
|
||||
{ },
|
||||
};
|
||||
|
|
|
@ -309,6 +309,7 @@ extern const struct sh_pfc_soc_info r8a77980_pinmux_info;
|
|||
extern const struct sh_pfc_soc_info r8a77990_pinmux_info;
|
||||
extern const struct sh_pfc_soc_info r8a77995_pinmux_info;
|
||||
extern const struct sh_pfc_soc_info r8a779a0_pinmux_info;
|
||||
extern const struct sh_pfc_soc_info r8a779f0_pinmux_info;
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Helper macros to create pin and port lists
|
||||
|
|
Loading…
Reference in a new issue