[Armadeus-commitlog] SF.net SVN: armadeus: [599] trunk/buildroot/target/device/armadeus/linux/ ker
Brought to you by:
sszy
|
From: <ar...@us...> - 2007-05-13 12:37:21
|
Revision: 599
http://armadeus.svn.sourceforge.net/armadeus/?rev=599&view=rev
Author: artemys
Date: 2007-05-13 05:37:23 -0700 (Sun, 13 May 2007)
Log Message:
-----------
[LINUX] Should correct Bug 1701141: iMX SPI driver does not work when compiled as module
Modified Paths:
--------------
trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.18.1/021-linux-2.6.18-apf9328.diff
Modified: trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.18.1/021-linux-2.6.18-apf9328.diff
===================================================================
--- trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.18.1/021-linux-2.6.18-apf9328.diff 2007-05-13 09:04:12 UTC (rev 598)
+++ trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.18.1/021-linux-2.6.18-apf9328.diff 2007-05-13 12:37:23 UTC (rev 599)
@@ -810,7 +810,7 @@
diff -urN linux-2.6.18.1/arch/arm/mach-imx/apf9328.c linux-2.6.18.1.mod/arch/arm/mach-imx/apf9328.c
--- linux-2.6.18.1/arch/arm/mach-imx/apf9328.c 1970-01-01 01:00:00.000000000 +0100
+++ linux-2.6.18.1.mod/arch/arm/mach-imx/apf9328.c 2007-01-07 21:39:30.000000000 +0100
-@@ -0,0 +1,319 @@
+@@ -0,0 +1,326 @@
+/*
+ * linux/arch/arm/mach-imx/apf9328.c
+ *
@@ -859,6 +859,13 @@
+
+#include "generic.h"
+
++#ifdef CONFIG_SENSORS_MAX1027_MODULE
++#define CONFIG_SENSORS_MAX1027 1
++#endif
++#ifdef CONFIG_SPI_IMX_MODULE
++#define CONFIG_SPI_IMX 1
++#endif
++
+// --- ETHERNET RESSOURCE ---
+#ifdef CONFIG_DM9000
+static struct resource dm9000_resources[] = {
@@ -1008,7 +1015,7 @@
+#ifdef CONFIG_SENSORS_MAX1027_MODULE
+#define IMX_SPI1_SS_PIN 15
+#define IMX_SPI1_SS (1<<15)
-+static void max1027_init_cs()
++static void max1027_init_cs(void)
+{
+ // SPI CSn is used as chip select but in GPIO mode
+ OCR1(2) |= 3<<(IMX_SPI1_SS_PIN*2);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|