<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://elinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://elinux.org/index.php?title=BeagleBoard/SPI/Patch-2.6.37&amp;feed=atom&amp;action=history</id>
		<title>BeagleBoard/SPI/Patch-2.6.37 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://elinux.org/index.php?title=BeagleBoard/SPI/Patch-2.6.37&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=BeagleBoard/SPI/Patch-2.6.37&amp;action=history"/>
		<updated>2013-05-26T01:32:15Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.22alpha</generator>

	<entry>
		<id>http://elinux.org/index.php?title=BeagleBoard/SPI/Patch-2.6.37&amp;diff=42601&amp;oldid=prev</id>
		<title>Peter Huewe: Added to category BeagleBoard</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=BeagleBoard/SPI/Patch-2.6.37&amp;diff=42601&amp;oldid=prev"/>
				<updated>2011-04-13T05:43:45Z</updated>
		
		<summary type="html">&lt;p&gt;Added to category BeagleBoard&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 05:43, 13 April 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 91:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 91:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;1.7.0.4&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;1.7.0.4&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:BeagleBoard]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key elinux:diff:version:1.11a:oldid:28867:newid:42601 --&gt;
&lt;/table&gt;</summary>
		<author><name>Peter Huewe</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=BeagleBoard/SPI/Patch-2.6.37&amp;diff=28867&amp;oldid=prev</id>
		<title>Bgamari: moved BeagleBoard/SPIPatch-2.6.37 to BeagleBoard/SPI/Patch-2.6.37</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=BeagleBoard/SPI/Patch-2.6.37&amp;diff=28867&amp;oldid=prev"/>
				<updated>2010-12-13T20:23:16Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/BeagleBoard/SPIPatch-2.6.37&quot; class=&quot;mw-redirect&quot; title=&quot;BeagleBoard/SPIPatch-2.6.37&quot;&gt;BeagleBoard/SPIPatch-2.6.37&lt;/a&gt; to &lt;a href=&quot;/BeagleBoard/SPI/Patch-2.6.37&quot; title=&quot;BeagleBoard/SPI/Patch-2.6.37&quot;&gt;BeagleBoard/SPI/Patch-2.6.37&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 20:23, 13 December 2010&lt;/td&gt;
			&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Bgamari</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=BeagleBoard/SPI/Patch-2.6.37&amp;diff=28717&amp;oldid=prev</id>
		<title>Bgamari: Created page with &quot;&lt;pre&gt; From 9241c22a3919d298aba3dd99ba578db9164eef2c Mon Sep 17 00:00:00 2001 From: Ben Gamari &lt;bgamari.foss@gmail.com&gt; Date: Sun, 28 Nov 2010 22:02:18 -0500 Subject: [PATCH] Setu...&quot;</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=BeagleBoard/SPI/Patch-2.6.37&amp;diff=28717&amp;oldid=prev"/>
				<updated>2010-12-10T14:04:59Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; From 9241c22a3919d298aba3dd99ba578db9164eef2c Mon Sep 17 00:00:00 2001 From: Ben Gamari &amp;lt;bgamari.foss@gmail.com&amp;gt; Date: Sun, 28 Nov 2010 22:02:18 -0500 Subject: [PATCH] Setu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
From 9241c22a3919d298aba3dd99ba578db9164eef2c Mon Sep 17 00:00:00 2001&lt;br /&gt;
From: Ben Gamari &amp;lt;bgamari.foss@gmail.com&amp;gt;&lt;br /&gt;
Date: Sun, 28 Nov 2010 22:02:18 -0500&lt;br /&gt;
Subject: [PATCH] Setup mcspi3 and mcspi4 as spidev devices&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
 arch/arm/mach-omap2/board-omap3beagle.c |   54 +++++++++++++++++++++++++++++++&lt;br /&gt;
 1 files changed, 54 insertions(+), 0 deletions(-)&lt;br /&gt;
&lt;br /&gt;
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c&lt;br /&gt;
index 14f4224..58bacb6 100644&lt;br /&gt;
--- a/arch/arm/mach-omap2/board-omap3beagle.c&lt;br /&gt;
+++ b/arch/arm/mach-omap2/board-omap3beagle.c&lt;br /&gt;
@@ -29,6 +29,7 @@&lt;br /&gt;
 #include &amp;lt;linux/mtd/nand.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;linux/mmc/host.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
+#include &amp;lt;linux/spi/spi.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;linux/regulator/machine.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;linux/i2c/twl.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
@@ -499,6 +500,54 @@ static struct platform_device *omap3_beagle_devices[] __initdata = {&lt;br /&gt;
 	&amp;amp;beagle_dss_device,&lt;br /&gt;
 };&lt;br /&gt;
 &lt;br /&gt;
+static void __init omap3_beagle_config_mcspi3_mux(void)&lt;br /&gt;
+{&lt;br /&gt;
+        // NOTE: Clock pins need to be in input mode&lt;br /&gt;
+	omap_mux_init_signal(&amp;quot;sdmmc2_clk.mcspi3_clk&amp;quot;, OMAP_PIN_INPUT);&lt;br /&gt;
+	omap_mux_init_signal(&amp;quot;sdmmc2_dat3.mcspi3_cs0&amp;quot;, OMAP_PIN_OUTPUT);&lt;br /&gt;
+	omap_mux_init_signal(&amp;quot;sdmmc2_dat2.mcspi3_cs1&amp;quot;, OMAP_PIN_OUTPUT);&lt;br /&gt;
+	omap_mux_init_signal(&amp;quot;sdmmc2_cmd.mcspi3_simo&amp;quot;, OMAP_PIN_OUTPUT);&lt;br /&gt;
+	omap_mux_init_signal(&amp;quot;sdmmc2_dat0.mcspi3_somi&amp;quot;, OMAP_PIN_INPUT_PULLUP);&lt;br /&gt;
+}&lt;br /&gt;
+&lt;br /&gt;
+static void __init omap3_beagle_config_mcspi4_mux(void)&lt;br /&gt;
+{&lt;br /&gt;
+        // NOTE: Clock pins need to be in input mode&lt;br /&gt;
+	omap_mux_init_signal(&amp;quot;mcbsp1_clkr.mcspi4_clk&amp;quot;, OMAP_PIN_INPUT);&lt;br /&gt;
+	omap_mux_init_signal(&amp;quot;mcbsp1_fsx.mcspi4_cs0&amp;quot;, OMAP_PIN_OUTPUT);&lt;br /&gt;
+	omap_mux_init_signal(&amp;quot;mcbsp1_dx.mcspi4_simo&amp;quot;, OMAP_PIN_OUTPUT);&lt;br /&gt;
+	omap_mux_init_signal(&amp;quot;mcbsp1_dr.mcspi4_somi&amp;quot;, OMAP_PIN_INPUT_PULLUP);&lt;br /&gt;
+}&lt;br /&gt;
+&lt;br /&gt;
+static struct spi_board_info beagle_mcspi_board_info[] = {&lt;br /&gt;
+	// spi 3.0&lt;br /&gt;
+	{&lt;br /&gt;
+		.modalias	= &amp;quot;spidev&amp;quot;,&lt;br /&gt;
+		.max_speed_hz	= 48000000, //48 Mbps&lt;br /&gt;
+		.bus_num	= 3,&lt;br /&gt;
+		.chip_select	= 0,	&lt;br /&gt;
+		.mode = SPI_MODE_1,&lt;br /&gt;
+	},&lt;br /&gt;
+&lt;br /&gt;
+	// spi 3.1&lt;br /&gt;
+	{&lt;br /&gt;
+		.modalias	= &amp;quot;spidev&amp;quot;,&lt;br /&gt;
+		.max_speed_hz	= 48000000, //48 Mbps&lt;br /&gt;
+		.bus_num	= 3,&lt;br /&gt;
+		.chip_select	= 1,	&lt;br /&gt;
+		.mode = SPI_MODE_1,&lt;br /&gt;
+	},&lt;br /&gt;
+&lt;br /&gt;
+	// spi 4.0&lt;br /&gt;
+	{&lt;br /&gt;
+		.modalias	= &amp;quot;spidev&amp;quot;,&lt;br /&gt;
+		.max_speed_hz	= 48000000, //48 Mbps&lt;br /&gt;
+		.bus_num	= 4,&lt;br /&gt;
+		.chip_select	= 0,	&lt;br /&gt;
+		.mode = SPI_MODE_1,&lt;br /&gt;
+	},&lt;br /&gt;
+};&lt;br /&gt;
+&lt;br /&gt;
 static void __init omap3beagle_flash_init(void)&lt;br /&gt;
 {&lt;br /&gt;
 	u8 cs = 0;&lt;br /&gt;
@@ -567,6 +616,11 @@ static void __init omap3_beagle_init(void)&lt;br /&gt;
 			ARRAY_SIZE(omap3_beagle_devices));&lt;br /&gt;
 	omap_serial_init();&lt;br /&gt;
 &lt;br /&gt;
+	omap3_beagle_config_mcspi3_mux();&lt;br /&gt;
+	omap3_beagle_config_mcspi4_mux();&lt;br /&gt;
+	spi_register_board_info(beagle_mcspi_board_info,&lt;br /&gt;
+			ARRAY_SIZE(beagle_mcspi_board_info));&lt;br /&gt;
+&lt;br /&gt;
 	omap_mux_init_gpio(170, OMAP_PIN_INPUT);&lt;br /&gt;
 	gpio_request(170, &amp;quot;DVI_nPD&amp;quot;);&lt;br /&gt;
 	/* REVISIT leave DVI powered down until it's needed ... */&lt;br /&gt;
-- &lt;br /&gt;
1.7.0.4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bgamari</name></author>	</entry>

	</feed>