aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrizio Castro <fabrizio.castro@bp.renesas.com>2017-11-14 10:41:17 -0500
committerGeert Uytterhoeven <geert+renesas@glider.be>2017-12-05 08:14:50 -0500
commit57eec02caee60332b8052615e7257f932ae07abc (patch)
treee32a5933b672bf2b8fcd8ea4ae5ea3b7bb302f9e
parent7c4a3906475cba91c51e10a79e681b4f9ec6ec14 (diff)
pinctrl: sh-pfc: r8a7791: Add can_clk function
This patch adds can_clk function to r8a7743/r8a7791 which is cleaner, and allows for independent configuration. We keep the can_clk* pins definitions from within can0_groups and can1_groups for uniformity and backwards compatibility. Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> Reviewed-by: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-r8a7791.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
index 10bd35f8c894..c01ef02d326b 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
@@ -4826,6 +4826,10 @@ static const char * const can0_groups[] = {
4826 "can0_data_d", 4826 "can0_data_d",
4827 "can0_data_e", 4827 "can0_data_e",
4828 "can0_data_f", 4828 "can0_data_f",
4829 /*
4830 * Retained for backwards compatibility, use can_clk_groups in new
4831 * designs.
4832 */
4829 "can_clk", 4833 "can_clk",
4830 "can_clk_b", 4834 "can_clk_b",
4831 "can_clk_c", 4835 "can_clk_c",
@@ -4837,6 +4841,21 @@ static const char * const can1_groups[] = {
4837 "can1_data_b", 4841 "can1_data_b",
4838 "can1_data_c", 4842 "can1_data_c",
4839 "can1_data_d", 4843 "can1_data_d",
4844 /*
4845 * Retained for backwards compatibility, use can_clk_groups in new
4846 * designs.
4847 */
4848 "can_clk",
4849 "can_clk_b",
4850 "can_clk_c",
4851 "can_clk_d",
4852};
4853
4854/*
4855 * can_clk_groups allows for independent configuration, use can_clk function
4856 * in new designs.
4857 */
4858static const char * const can_clk_groups[] = {
4840 "can_clk", 4859 "can_clk",
4841 "can_clk_b", 4860 "can_clk_b",
4842 "can_clk_c", 4861 "can_clk_c",
@@ -5308,7 +5327,7 @@ static const char * const vin2_groups[] = {
5308}; 5327};
5309 5328
5310static const struct { 5329static const struct {
5311 struct sh_pfc_function common[56]; 5330 struct sh_pfc_function common[57];
5312 struct sh_pfc_function r8a779x[2]; 5331 struct sh_pfc_function r8a779x[2];
5313} pinmux_functions = { 5332} pinmux_functions = {
5314 .common = { 5333 .common = {
@@ -5316,6 +5335,7 @@ static const struct {
5316 SH_PFC_FUNCTION(avb), 5335 SH_PFC_FUNCTION(avb),
5317 SH_PFC_FUNCTION(can0), 5336 SH_PFC_FUNCTION(can0),
5318 SH_PFC_FUNCTION(can1), 5337 SH_PFC_FUNCTION(can1),
5338 SH_PFC_FUNCTION(can_clk),
5319 SH_PFC_FUNCTION(du), 5339 SH_PFC_FUNCTION(du),
5320 SH_PFC_FUNCTION(du0), 5340 SH_PFC_FUNCTION(du0),
5321 SH_PFC_FUNCTION(du1), 5341 SH_PFC_FUNCTION(du1),