summaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-2.6.32/400-spi1.patch
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-05-29 21:19:26 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-05-29 21:19:26 +0000
commitfd8ccf9c652556047dee58330dd8543dbf345d7b (patch)
treeb9da76295132f5efbc18c34b9de3db80de664403 /target/linux/lantiq/patches-2.6.32/400-spi1.patch
parent28ff8acfd1357992354357df119a56e683b52326 (diff)
[lantiq]
* backport 2.6.8 patches to .39 / .32.33 * remove lqtapi * bump tapi/dsl to .39 * migrate to new ltq_ style api * add amazon_se support git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27026 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches-2.6.32/400-spi1.patch')
-rw-r--r--target/linux/lantiq/patches-2.6.32/400-spi1.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-2.6.32/400-spi1.patch b/target/linux/lantiq/patches-2.6.32/400-spi1.patch
new file mode 100644
index 000000000..61bfa2e18
--- /dev/null
+++ b/target/linux/lantiq/patches-2.6.32/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 @@
+ 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