aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-3.0/400-spi1.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2011-07-06 17:27:17 +0000
committerJohn Crispin <john@openwrt.org>2011-07-06 17:27:17 +0000
commita674aabe5439b8a507e31833a1fcb3bab925b050 (patch)
treee29576e0d27a4edfa02b0295bf2d8a4a27f3ce39 /target/linux/lantiq/patches-3.0/400-spi1.patch
parentabb1ca01a7121b36aa04a16da5d27f2fed02f3e8 (diff)
downloadupstream-a674aabe5439b8a507e31833a1fcb3bab925b050.tar.gz
upstream-a674aabe5439b8a507e31833a1fcb3bab925b050.tar.bz2
upstream-a674aabe5439b8a507e31833a1fcb3bab925b050.zip
get ready for 3.0
SVN-Revision: 27496
Diffstat (limited to 'target/linux/lantiq/patches-3.0/400-spi1.patch')
-rw-r--r--target/linux/lantiq/patches-3.0/400-spi1.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-3.0/400-spi1.patch b/target/linux/lantiq/patches-3.0/400-spi1.patch
new file mode 100644
index 0000000000..c3c9330219
--- /dev/null
+++ b/target/linux/lantiq/patches-3.0/400-spi1.patch
@@ -0,0 +1,36 @@
+From: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
+Date: Thu, 3 Mar 2011 17:15:58 +0000 (+0100)
+Subject: MIPS: lantiq: Add platform data for Lantiq SoC SPI controller driver
+X-Git-Url: http://nbd.name/gitweb.cgi?p=lantiq.git;a=commitdiff_plain;h=3d21b04682ae8eb1c1965aba39d1796e8c5ad84b;hp=06b420500fe98e37662837e78d8e51aead8aea81
+
+MIPS: lantiq: Add platform data for Lantiq SoC SPI controller driver
+
+Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
+---
+
+--- a/arch/mips/include/asm/mach-lantiq/lantiq_platform.h
++++ b/arch/mips/include/asm/mach-lantiq/lantiq_platform.h
+@@ -50,4 +50,13 @@ struct ltq_eth_data {
+ int mii_mode;
+ };
+
++
++struct ltq_spi_platform_data {
++ u16 num_chipselect;
++};
++
++struct ltq_spi_controller_data {
++ unsigned gpio;
++};
++
+ #endif
+--- a/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h
++++ b/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h
+@@ -75,6 +75,7 @@
+
+ #define PMU_DMA 0x0020
+ #define PMU_USB 0x8041
++#define PMU_SPI 0x0100
+ #define PMU_LED 0x0800
+ #define PMU_GPT 0x1000
+ #define PMU_PPE 0x2000