summaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-3.2/207-devices.patch
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-04-12 12:33:56 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-04-12 12:33:56 +0000
commit9e31085943dfadaa0f5961f5cbc4f7a240a09c53 (patch)
treed933bb536eb34a7b28b804d06d8dac93d585fd62 /target/linux/lantiq/patches-3.2/207-devices.patch
parentd7f2b105adff786e97f5a45373392f1e8eeee8f9 (diff)
[lantiq] update 3.2 patches
sync with lantiq kernel series git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31260 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches-3.2/207-devices.patch')
-rw-r--r--target/linux/lantiq/patches-3.2/207-devices.patch19
1 files changed, 16 insertions, 3 deletions
diff --git a/target/linux/lantiq/patches-3.2/207-devices.patch b/target/linux/lantiq/patches-3.2/207-devices.patch
index 2bc498d1b..f0bc99e91 100644
--- a/target/linux/lantiq/patches-3.2/207-devices.patch
+++ b/target/linux/lantiq/patches-3.2/207-devices.patch
@@ -59,7 +59,7 @@
#include <asm/bootinfo.h>
#include <asm/irq.h>
-@@ -119,3 +120,84 @@ ltq_register_vrx200(struct ltq_eth_data
+@@ -119,3 +120,97 @@ ltq_register_vrx200(struct ltq_eth_data
ltq_vrx200.dev.platform_data = eth;
platform_device_register(&ltq_vrx200);
}
@@ -129,8 +129,19 @@
+ IRQ_RES(spi_err, LTQ_SSC_EIR),
+};
+
++static struct resource ltq_spi_resources_ase[] = {
++ {
++ .start = LTQ_SSC_BASE_ADDR,
++ .end = LTQ_SSC_BASE_ADDR + LTQ_SSC_SIZE - 1,
++ .flags = IORESOURCE_MEM,
++ },
++ IRQ_RES(spi_tx, LTQ_SSC_TIR_ASE),
++ IRQ_RES(spi_rx, LTQ_SSC_RIR_ASE),
++ IRQ_RES(spi_err, LTQ_SSC_EIR_ASE),
++};
++
+static struct platform_device ltq_spi = {
-+ .name = "ltq-spi",
++ .name = "ltq_spi",
+ .resource = ltq_spi_resources,
+ .num_resources = ARRAY_SIZE(ltq_spi_resources),
+};
@@ -138,8 +149,10 @@
+void __init ltq_register_spi(struct ltq_spi_platform_data *pdata,
+ struct spi_board_info const *info, unsigned n)
+{
-+ if(ltq_is_ar9())
++ if (ltq_is_ar9())
+ ltq_spi.resource = ltq_spi_resources_ar9;
++ else if (ltq_is_ase())
++ ltq_spi.resource = ltq_spi_resources_ase;
+ spi_register_board_info(info, n);
+ ltq_spi.dev.platform_data = pdata;
+ platform_device_register(&ltq_spi);