pinctrl: rmobile: Import R8A7792 V2H PFC tables
Import PFC tables for R8A7792 V2H SoC from upstream Linux kernel v4.15-rc8, commit bebc6082da0a9f5d47a1ea2edc099bf671058bd4 . Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
This commit is contained in:
@@ -28,6 +28,17 @@ config PINCTRL_PFC_R8A7791
|
|||||||
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_R8A7792
|
||||||
|
bool "Renesas RCar Gen2 R8A7792 pin control driver"
|
||||||
|
def_bool y if R8A7792
|
||||||
|
depends on PINCTRL_PFC
|
||||||
|
help
|
||||||
|
Support pin multiplexing control on Renesas RCar Gen3 R8A7792 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_R8A7793
|
config PINCTRL_PFC_R8A7793
|
||||||
bool "Renesas RCar Gen2 R8A7793 pin control driver"
|
bool "Renesas RCar Gen2 R8A7793 pin control driver"
|
||||||
def_bool y if R8A7793
|
def_bool y if R8A7793
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
obj-$(CONFIG_PINCTRL_PFC) += pfc.o
|
obj-$(CONFIG_PINCTRL_PFC) += pfc.o
|
||||||
obj-$(CONFIG_PINCTRL_PFC_R8A7790) += pfc-r8a7790.o
|
obj-$(CONFIG_PINCTRL_PFC_R8A7790) += pfc-r8a7790.o
|
||||||
obj-$(CONFIG_PINCTRL_PFC_R8A7791) += pfc-r8a7791.o
|
obj-$(CONFIG_PINCTRL_PFC_R8A7791) += pfc-r8a7791.o
|
||||||
|
obj-$(CONFIG_PINCTRL_PFC_R8A7792) += pfc-r8a7792.o
|
||||||
obj-$(CONFIG_PINCTRL_PFC_R8A7793) += pfc-r8a7791.o
|
obj-$(CONFIG_PINCTRL_PFC_R8A7793) += pfc-r8a7791.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
|
||||||
|
|||||||
2795
drivers/pinctrl/renesas/pfc-r8a7792.c
Normal file
2795
drivers/pinctrl/renesas/pfc-r8a7792.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -26,6 +26,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
|||||||
enum sh_pfc_model {
|
enum sh_pfc_model {
|
||||||
SH_PFC_R8A7790 = 0,
|
SH_PFC_R8A7790 = 0,
|
||||||
SH_PFC_R8A7791,
|
SH_PFC_R8A7791,
|
||||||
|
SH_PFC_R8A7792,
|
||||||
SH_PFC_R8A7793,
|
SH_PFC_R8A7793,
|
||||||
SH_PFC_R8A7795,
|
SH_PFC_R8A7795,
|
||||||
SH_PFC_R8A7796,
|
SH_PFC_R8A7796,
|
||||||
@@ -783,6 +784,10 @@ static int sh_pfc_pinctrl_probe(struct udevice *dev)
|
|||||||
if (model == SH_PFC_R8A7791)
|
if (model == SH_PFC_R8A7791)
|
||||||
priv->pfc.info = &r8a7791_pinmux_info;
|
priv->pfc.info = &r8a7791_pinmux_info;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_PINCTRL_PFC_R8A7792
|
||||||
|
if (model == SH_PFC_R8A7792)
|
||||||
|
priv->pfc.info = &r8a7792_pinmux_info;
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_PINCTRL_PFC_R8A7793
|
#ifdef CONFIG_PINCTRL_PFC_R8A7793
|
||||||
if (model == SH_PFC_R8A7793)
|
if (model == SH_PFC_R8A7793)
|
||||||
priv->pfc.info = &r8a7793_pinmux_info;
|
priv->pfc.info = &r8a7793_pinmux_info;
|
||||||
@@ -824,6 +829,12 @@ static const struct udevice_id sh_pfc_pinctrl_ids[] = {
|
|||||||
.data = SH_PFC_R8A7791,
|
.data = SH_PFC_R8A7791,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_PINCTRL_PFC_R8A7792
|
||||||
|
{
|
||||||
|
.compatible = "renesas,pfc-r8a7792",
|
||||||
|
.data = SH_PFC_R8A7792,
|
||||||
|
},
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_PINCTRL_PFC_R8A7793
|
#ifdef CONFIG_PINCTRL_PFC_R8A7793
|
||||||
{
|
{
|
||||||
.compatible = "renesas,pfc-r8a7793",
|
.compatible = "renesas,pfc-r8a7793",
|
||||||
|
|||||||
@@ -247,6 +247,7 @@ int sh_pfc_config_mux_for_gpio(struct udevice *dev, unsigned pin_selector);
|
|||||||
|
|
||||||
extern const struct sh_pfc_soc_info r8a7790_pinmux_info;
|
extern const struct sh_pfc_soc_info r8a7790_pinmux_info;
|
||||||
extern const struct sh_pfc_soc_info r8a7791_pinmux_info;
|
extern const struct sh_pfc_soc_info r8a7791_pinmux_info;
|
||||||
|
extern const struct sh_pfc_soc_info r8a7792_pinmux_info;
|
||||||
extern const struct sh_pfc_soc_info r8a7793_pinmux_info;
|
extern const struct sh_pfc_soc_info r8a7793_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;
|
||||||
|
|||||||
Reference in New Issue
Block a user