[PATCH 2/2] ARM: PRIMA2: add PINMUX map for primaII UART1 and SPI0/1
Barry Song
Barry.Song at csr.com
Tue Jul 3 23:43:20 EDT 2012
From: Barry Song <Baohua.Song at csr.com>
Signed-off-by: Barry Song <Baohua.Song at csr.com>
---
arch/arm/mach-prima2/prima2.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-prima2/prima2.c b/arch/arm/mach-prima2/prima2.c
index 82f5c0d..b2bb33d 100644
--- a/arch/arm/mach-prima2/prima2.c
+++ b/arch/arm/mach-prima2/prima2.c
@@ -33,6 +33,13 @@ struct of_dev_auxdata prima2_auxdata_lookup[] __initdata = {
{},
};
+/* Padmux settings */
+static struct pinctrl_map prima2_padmux_map[] = {
+ PIN_MAP_MUX_GROUP_DEFAULT("uart1", "pinctrl0", NULL, "uart1"),
+ PIN_MAP_MUX_GROUP_DEFAULT("spi0", "pinctrl0", NULL, "spi0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("spi1", "pinctrl0", NULL, "spi1"),
+};
+
static struct of_device_id sirfsoc_of_bus_ids[] __initdata = {
{ .compatible = "simple-bus", },
{},
@@ -41,6 +48,7 @@ static struct of_device_id sirfsoc_of_bus_ids[] __initdata = {
void __init sirfsoc_mach_init(void)
{
of_platform_populate(NULL, sirfsoc_of_bus_ids, prima2_auxdata_lookup, NULL);
+ pinctrl_register_mappings(prima2_padmux_map, ARRAY_SIZE(prima2_padmux_map));
}
void __init sirfsoc_init_late(void)
--
1.7.1
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
More information about the linux-arm-kernel
mailing list