From mboxrd@z Thu Jan 1 00:00:00 1970 From: Magnus Damm Date: Tue, 26 Mar 2013 14:12:47 +0000 Subject: [PATCH 02/03 v2] ARM: shmobile: APE6EVM PFC support Message-Id: <20130326141247.19958.35056.sendpatchset@w520> List-Id: References: <20130326141228.19958.93081.sendpatchset@w520> In-Reply-To: <20130326141228.19958.93081.sendpatchset@w520> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org From: Magnus Damm Start using the r8a73a4 PFC on the APE6EVM board and configure the SCIFA0 console signals in the PFC via PINCTRL. Signed-off-by: Magnus Damm --- Changes since V1: - Use PINCTRL instead of function GPIOs arch/arm/mach-shmobile/board-ape6evm.c | 10 ++++++++++ 1 file changed, 10 insertions(+) --- 0012/arch/arm/mach-shmobile/board-ape6evm.c +++ work/arch/arm/mach-shmobile/board-ape6evm.c 2013-03-26 18:56:46.000000000 +0900 @@ -21,15 +21,25 @@ #include #include #include +#include #include #include #include #include #include +static const struct pinctrl_map ape6evm_pinctrl_map[] = { + /* SCIFA0 console */ + PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a73a4", + "scifa0_data", "scifa0"), +}; + static void __init ape6evm_add_standard_devices(void) { r8a73a4_clock_init(); + pinctrl_register_mappings(ape6evm_pinctrl_map, + ARRAY_SIZE(ape6evm_pinctrl_map)); + r8a73a4_pinmux_init(); r8a73a4_add_standard_devices(); }