pinctrl: renesas: Initial R8A77990 PFC support
This patch adds initial pinctrl driver to support for the R8A77990 SoC. Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
This commit is contained in:
parent
634f9f0d30
commit
cb13e46aeb
@ -94,6 +94,17 @@ config PINCTRL_PFC_R8A77970
|
|||||||
the GPIO definitions and pin control functions for each available
|
the GPIO definitions and pin control functions for each available
|
||||||
multiplex function.
|
multiplex function.
|
||||||
|
|
||||||
|
config PINCTRL_PFC_R8A77990
|
||||||
|
bool "Renesas RCar Gen3 R8A77990 pin control driver"
|
||||||
|
def_bool y if R8A77990
|
||||||
|
depends on PINCTRL_PFC
|
||||||
|
help
|
||||||
|
Support pin multiplexing control on Renesas RCar Gen3 R8A77990 SoCs.
|
||||||
|
|
||||||
|
The driver is controlled by a device tree node which contains both
|
||||||
|
the GPIO definitions and pin control functions for each available
|
||||||
|
multiplex function.
|
||||||
|
|
||||||
config PINCTRL_PFC_R8A77995
|
config PINCTRL_PFC_R8A77995
|
||||||
bool "Renesas RCar Gen3 R8A77995 pin control driver"
|
bool "Renesas RCar Gen3 R8A77995 pin control driver"
|
||||||
def_bool y if R8A77995
|
def_bool y if R8A77995
|
||||||
|
@ -7,4 +7,5 @@ obj-$(CONFIG_PINCTRL_PFC_R8A7794) += pfc-r8a7794.o
|
|||||||
obj-$(CONFIG_PINCTRL_PFC_R8A7795) += pfc-r8a7795.o
|
obj-$(CONFIG_PINCTRL_PFC_R8A7795) += pfc-r8a7795.o
|
||||||
obj-$(CONFIG_PINCTRL_PFC_R8A7796) += pfc-r8a7796.o
|
obj-$(CONFIG_PINCTRL_PFC_R8A7796) += pfc-r8a7796.o
|
||||||
obj-$(CONFIG_PINCTRL_PFC_R8A77970) += pfc-r8a77970.o
|
obj-$(CONFIG_PINCTRL_PFC_R8A77970) += pfc-r8a77970.o
|
||||||
|
obj-$(CONFIG_PINCTRL_PFC_R8A77990) += pfc-r8a77990.o
|
||||||
obj-$(CONFIG_PINCTRL_PFC_R8A77995) += pfc-r8a77995.o
|
obj-$(CONFIG_PINCTRL_PFC_R8A77995) += pfc-r8a77995.o
|
||||||
|
1732
drivers/pinctrl/renesas/pfc-r8a77990.c
Normal file
1732
drivers/pinctrl/renesas/pfc-r8a77990.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -29,6 +29,7 @@ enum sh_pfc_model {
|
|||||||
SH_PFC_R8A7795,
|
SH_PFC_R8A7795,
|
||||||
SH_PFC_R8A7796,
|
SH_PFC_R8A7796,
|
||||||
SH_PFC_R8A77970,
|
SH_PFC_R8A77970,
|
||||||
|
SH_PFC_R8A77990,
|
||||||
SH_PFC_R8A77995,
|
SH_PFC_R8A77995,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -806,6 +807,10 @@ static int sh_pfc_pinctrl_probe(struct udevice *dev)
|
|||||||
if (model == SH_PFC_R8A77970)
|
if (model == SH_PFC_R8A77970)
|
||||||
priv->pfc.info = &r8a77970_pinmux_info;
|
priv->pfc.info = &r8a77970_pinmux_info;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_PINCTRL_PFC_R8A77990
|
||||||
|
if (model == SH_PFC_R8A77990)
|
||||||
|
priv->pfc.info = &r8a77990_pinmux_info;
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_PINCTRL_PFC_R8A77995
|
#ifdef CONFIG_PINCTRL_PFC_R8A77995
|
||||||
if (model == SH_PFC_R8A77995)
|
if (model == SH_PFC_R8A77995)
|
||||||
priv->pfc.info = &r8a77995_pinmux_info;
|
priv->pfc.info = &r8a77995_pinmux_info;
|
||||||
@ -870,6 +875,12 @@ static const struct udevice_id sh_pfc_pinctrl_ids[] = {
|
|||||||
.data = SH_PFC_R8A77970,
|
.data = SH_PFC_R8A77970,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_PINCTRL_PFC_R8A77990
|
||||||
|
{
|
||||||
|
.compatible = "renesas,pfc-r8a77990",
|
||||||
|
.data = SH_PFC_R8A77990,
|
||||||
|
},
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_PINCTRL_PFC_R8A77995
|
#ifdef CONFIG_PINCTRL_PFC_R8A77995
|
||||||
{
|
{
|
||||||
.compatible = "renesas,pfc-r8a77995",
|
.compatible = "renesas,pfc-r8a77995",
|
||||||
|
@ -253,6 +253,7 @@ extern const struct sh_pfc_soc_info r8a7794_pinmux_info;
|
|||||||
extern const struct sh_pfc_soc_info r8a7795_pinmux_info;
|
extern const struct sh_pfc_soc_info r8a7795_pinmux_info;
|
||||||
extern const struct sh_pfc_soc_info r8a7796_pinmux_info;
|
extern const struct sh_pfc_soc_info r8a7796_pinmux_info;
|
||||||
extern const struct sh_pfc_soc_info r8a77970_pinmux_info;
|
extern const struct sh_pfc_soc_info r8a77970_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 r8a77995_pinmux_info;
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
* Helper macros to create pin and port lists
|
* Helper macros to create pin and port lists
|
||||||
|
Loading…
Reference in New Issue
Block a user