diff options
author | Niklas Söderlund <niso@kth.se> | 2015-01-25 08:49:52 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-01-27 02:50:22 -0500 |
commit | 1e7d5d849cf4f0c51abb85d6b9a3181cebaf82c5 (patch) | |
tree | 4345eacb069f2ad5078c13a34b33e40311d8911c /drivers/pinctrl/sh-pfc/core.c | |
parent | 4c9e473541c52453554dd78bdef8c2deba1d2ff3 (diff) |
sh-pfc: Add emev2 pinmux support
Add PFC support for the EMMA Mobile EV2 SoC including pin groups for
on-chip devices.
Signed-off-by: Niklas Söderlund <niso@kth.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/core.c')
-rw-r--r-- | drivers/pinctrl/sh-pfc/core.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/core.c b/drivers/pinctrl/sh-pfc/core.c index 66dc62d2156c..b92057d72e3d 100644 --- a/drivers/pinctrl/sh-pfc/core.c +++ b/drivers/pinctrl/sh-pfc/core.c | |||
@@ -439,6 +439,12 @@ static int sh_pfc_init_ranges(struct sh_pfc *pfc) | |||
439 | 439 | ||
440 | #ifdef CONFIG_OF | 440 | #ifdef CONFIG_OF |
441 | static const struct of_device_id sh_pfc_of_table[] = { | 441 | static const struct of_device_id sh_pfc_of_table[] = { |
442 | #ifdef CONFIG_PINCTRL_PFC_EMEV2 | ||
443 | { | ||
444 | .compatible = "renesas,pfc-emev2", | ||
445 | .data = &emev2_pinmux_info, | ||
446 | }, | ||
447 | #endif | ||
442 | #ifdef CONFIG_PINCTRL_PFC_R8A73A4 | 448 | #ifdef CONFIG_PINCTRL_PFC_R8A73A4 |
443 | { | 449 | { |
444 | .compatible = "renesas,pfc-r8a73a4", | 450 | .compatible = "renesas,pfc-r8a73a4", |
@@ -579,6 +585,9 @@ static int sh_pfc_remove(struct platform_device *pdev) | |||
579 | } | 585 | } |
580 | 586 | ||
581 | static const struct platform_device_id sh_pfc_id_table[] = { | 587 | static const struct platform_device_id sh_pfc_id_table[] = { |
588 | #ifdef CONFIG_PINCTRL_PFC_EMEV2 | ||
589 | { "pfc-emev2", (kernel_ulong_t)&emev2_pinmux_info }, | ||
590 | #endif | ||
582 | #ifdef CONFIG_PINCTRL_PFC_R8A73A4 | 591 | #ifdef CONFIG_PINCTRL_PFC_R8A73A4 |
583 | { "pfc-r8a73a4", (kernel_ulong_t)&r8a73a4_pinmux_info }, | 592 | { "pfc-r8a73a4", (kernel_ulong_t)&r8a73a4_pinmux_info }, |
584 | #endif | 593 | #endif |