<?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-rcn-ee-2.6.38.2-d9_mcspi3_gpio144_gpio183&amp;feed=atom&amp;action=history</id>
		<title>BeagleBoard/SPI/Patch-rcn-ee-2.6.38.2-d9 mcspi3 gpio144 gpio183 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://elinux.org/index.php?title=BeagleBoard/SPI/Patch-rcn-ee-2.6.38.2-d9_mcspi3_gpio144_gpio183&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=BeagleBoard/SPI/Patch-rcn-ee-2.6.38.2-d9_mcspi3_gpio144_gpio183&amp;action=history"/>
		<updated>2013-05-25T00:22:32Z</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-rcn-ee-2.6.38.2-d9_mcspi3_gpio144_gpio183&amp;diff=46513&amp;oldid=prev</id>
		<title>Jsujjava: Add Category BeagleBoard</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=BeagleBoard/SPI/Patch-rcn-ee-2.6.38.2-d9_mcspi3_gpio144_gpio183&amp;diff=46513&amp;oldid=prev"/>
				<updated>2011-05-06T18:40:08Z</updated>
		
		<summary type="html">&lt;p&gt;Add 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 18:40, 6 May 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 129:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 129:&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;#160; 	/* REVISIT leave DVI powered down until it's needed ... */&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;#160; 	/* REVISIT leave DVI powered down until it's needed ... */&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;[[Category:BeagleBoard]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jsujjava</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=BeagleBoard/SPI/Patch-rcn-ee-2.6.38.2-d9_mcspi3_gpio144_gpio183&amp;diff=45103&amp;oldid=prev</id>
		<title>Damian0815: Created page with &quot;&lt;pre&gt; diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index dd083ae..de62907 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile...&quot;</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=BeagleBoard/SPI/Patch-rcn-ee-2.6.38.2-d9_mcspi3_gpio144_gpio183&amp;diff=45103&amp;oldid=prev"/>
				<updated>2011-04-28T08:39:10Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index dd083ae..de62907 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile...&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;
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile&lt;br /&gt;
index dd083ae..de62907 100644&lt;br /&gt;
--- a/arch/arm/mach-omap2/Makefile&lt;br /&gt;
+++ b/arch/arm/mach-omap2/Makefile&lt;br /&gt;
@@ -2,6 +2,8 @@&lt;br /&gt;
 # Makefile for the linux kernel.&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
+CFLAGS_mux.o += -DDEBUG&lt;br /&gt;
+&lt;br /&gt;
 # Common support&lt;br /&gt;
 obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer-gp.o pm.o \&lt;br /&gt;
 	 common.o gpio.o dma.o wd_timer.o&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 10b33d7..b2ff61d 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;
@@ -31,6 +31,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;
@@ -56,6 +57,8 @@&lt;br /&gt;
 &lt;br /&gt;
 #define NAND_BLOCK_SIZE		SZ_128K&lt;br /&gt;
 &lt;br /&gt;
+#define DAMIANS_WATTEROTT_BOARD&lt;br /&gt;
+&lt;br /&gt;
 /*&lt;br /&gt;
  * OMAP3 Beagle revision&lt;br /&gt;
  * Run time detection of Beagle revision is done by reading GPIO.&lt;br /&gt;
@@ -351,18 +354,21 @@ static void __init beagle_display_init(void)&lt;br /&gt;
 &lt;br /&gt;
 #include &amp;quot;sdram-micron-mt46h32m32lf-6.h&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
+&lt;br /&gt;
 static struct omap2_hsmmc_info mmc[] = {&lt;br /&gt;
 	{&lt;br /&gt;
 		.mmc		= 1,&lt;br /&gt;
 		.caps		= MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA,&lt;br /&gt;
 		.gpio_wp	= 29,&lt;br /&gt;
 	},&lt;br /&gt;
+#ifndef DAMIANS_WATTEROTT_BOARD&lt;br /&gt;
 	{&lt;br /&gt;
 		.mmc		= 2,&lt;br /&gt;
 		.caps		= MMC_CAP_4_BIT_DATA,&lt;br /&gt;
 		.transceiver	= true,&lt;br /&gt;
 		.ocr_mask	= 0x00100000,	/* 3.3V */&lt;br /&gt;
 	},&lt;br /&gt;
+#endif&lt;br /&gt;
 	{}	/* Terminator */&lt;br /&gt;
 };&lt;br /&gt;
 &lt;br /&gt;
@@ -604,7 +610,9 @@ static int __init omap3_beagle_i2c_init(void)&lt;br /&gt;
 	}&lt;br /&gt;
 	else&lt;br /&gt;
 	{&lt;br /&gt;
+#ifndef DAMIANS_WATTEROTT_BOARD&lt;br /&gt;
 	omap_register_i2c_bus(2, 400, NULL, 0);&lt;br /&gt;
+#endif&lt;br /&gt;
 	}&lt;br /&gt;
 	/* Bus 3 is attached to the DVI port where devices like the pico DLP&lt;br /&gt;
 	 * projector don't work reliably with 400kHz */&lt;br /&gt;
@@ -685,6 +693,50 @@ static struct platform_device *omap3_beagle_devices[] __initdata = {&lt;br /&gt;
 	&amp;amp;keys_gpio,&lt;br /&gt;
 };&lt;br /&gt;
 &lt;br /&gt;
+&lt;br /&gt;
+#ifdef DAMIANS_WATTEROTT_BOARD&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_damians_watterott_mux(void)&lt;br /&gt;
+{&lt;br /&gt;
+	omap3_beagle_config_mcspi3_mux();&lt;br /&gt;
+&lt;br /&gt;
+	omap_mux_init_signal(&amp;quot;uart2_cts.gpio_144&amp;quot;, OMAP_PIN_OUTPUT );&lt;br /&gt;
+	omap_mux_init_signal(&amp;quot;i2c2_sda.gpio_183&amp;quot;, OMAP_PIN_OUTPUT );&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;
+};&lt;br /&gt;
+&lt;br /&gt;
+#endif&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;
@@ -814,6 +866,10 @@ static void __init omap3_beagle_init(void)&lt;br /&gt;
 	omap_display_init(&amp;amp;beagle_dss_data);&lt;br /&gt;
 	omap_serial_init();&lt;br /&gt;
 &lt;br /&gt;
+	omap3_beagle_config_damians_watterott_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;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Damian0815</name></author>	</entry>

	</feed>