[PATCH 4/5] OMAP4: board-4430sdp: Initialise the mcspi mux pins

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use the mux framework to initialise the mcspi mux pins.

Signed-off-by: sricharan <r.sricharan@xxxxxx>
---
 arch/arm/mach-omap2/board-4430sdp.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
index 323b62e..c0ffea1 100644
--- a/arch/arm/mach-omap2/board-4430sdp.c
+++ b/arch/arm/mach-omap2/board-4430sdp.c
@@ -501,6 +501,25 @@ static void __init omap_sfh7741prox_init(void)
 	}
 }
 
+static void __init omap_mcspi_mux_init(void)
+{
+	/* PIN MUX for MCSPI1 */
+	omap_mux_init_signal("mcspi1_clk.mcspi1_clk", OMAP_PIN_INPUT);
+	omap_mux_init_signal("mcspi1_somi.mcspi1_somi",	OMAP_PIN_INPUT);
+	omap_mux_init_signal("mcspi1_simo.mcspi1_simo",	OMAP_PIN_INPUT);
+	omap_mux_init_signal("mcspi1_cs0.mcspi1_cs0", OMAP_PIN_INPUT);
+	/*
+	 * CS1 should be configured as gpio 138
+	 * to avoid interference with CS0
+	 */
+	omap_mux_init_signal("mcspi1_cs1.gpio_138", OMAP_PIN_INPUT);
+
+	/* PIN MUX for MCSPI4. This is not connected to any device */
+	omap_mux_init_signal("mcspi4_clk.mcspi4_clk", OMAP_PIN_INPUT);
+	omap_mux_init_signal("mcspi4_somi.mcspi4_somi",	OMAP_PIN_INPUT);
+	omap_mux_init_signal("mcspi4_simo.mcspi4_simo",	OMAP_PIN_INPUT);
+	omap_mux_init_signal("mcspi4_cs0.mcspi4_cs0", OMAP_PIN_INPUT_PULLDOWN);
+}
 #ifdef CONFIG_OMAP_MUX
 static struct omap_board_mux board_mux[] __initdata = {
 	{ .reg_offset = OMAP_MUX_TERMINATOR },
@@ -529,6 +548,7 @@ static void __init omap_4430sdp_init(void)
 	if (!cpu_is_omap44xx())
 		usb_musb_init(&musb_board_data);
 
+	omap_mcspi_mux_init();
 	status = omap_ethernet_init();
 	if (status) {
 		pr_err("Ethernet initialization failed: %d\n", status);
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux