Commit d5b1521a authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Simon Horman
parent 19bb7fe3
...@@ -21,4 +21,9 @@ config GPIO_SH_PFC ...@@ -21,4 +21,9 @@ config GPIO_SH_PFC
This enables support for GPIOs within the SoC's pin function This enables support for GPIOs within the SoC's pin function
controller. controller.
config PINCTRL_PFC_R8A7740
def_bool y
depends on ARCH_R8A7740
select PINCTRL_SH_PFC
endif endif
...@@ -3,3 +3,4 @@ ifeq ($(CONFIG_GPIO_SH_PFC),y) ...@@ -3,3 +3,4 @@ ifeq ($(CONFIG_GPIO_SH_PFC),y)
sh-pfc-objs += gpio.o sh-pfc-objs += gpio.o
endif endif
obj-$(CONFIG_PINCTRL_SH_PFC) += sh-pfc.o obj-$(CONFIG_PINCTRL_SH_PFC) += sh-pfc.o
obj-$(CONFIG_PINCTRL_PFC_R8A7740) += pfc-r8a7740.o
...@@ -556,6 +556,9 @@ static int sh_pfc_remove(struct platform_device *pdev) ...@@ -556,6 +556,9 @@ static int sh_pfc_remove(struct platform_device *pdev)
} }
static const struct platform_device_id sh_pfc_id_table[] = { static const struct platform_device_id sh_pfc_id_table[] = {
#ifdef CONFIG_PINCTRL_PFC_R8A7740
{ "pfc-r8a7740", (kernel_ulong_t)&r8a7740_pinmux_info },
#endif
{ "sh-pfc", 0 }, { "sh-pfc", 0 },
{ }, { },
}; };
......
...@@ -51,4 +51,6 @@ int sh_pfc_gpio_to_enum(struct sh_pfc *pfc, unsigned gpio, int pos, ...@@ -51,4 +51,6 @@ int sh_pfc_gpio_to_enum(struct sh_pfc *pfc, unsigned gpio, int pos,
int sh_pfc_config_gpio(struct sh_pfc *pfc, unsigned gpio, int pinmux_type, int sh_pfc_config_gpio(struct sh_pfc *pfc, unsigned gpio, int pinmux_type,
int cfg_mode); int cfg_mode);
extern struct sh_pfc_soc_info r8a7740_pinmux_info;
#endif /* __SH_PFC_CORE_H__ */ #endif /* __SH_PFC_CORE_H__ */
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment