aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-3.2/207-devices.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-04-12 12:33:56 +0000
committerJohn Crispin <john@openwrt.org>2012-04-12 12:33:56 +0000
commite3889bcf7c8ad2eff0eaeb62dbc4c0977a972788 (patch)
treec69a83b322c88d9516c9022635a80d5803ac83c3 /target/linux/lantiq/patches-3.2/207-devices.patch
parent1b7578845130f5ea6f4096f62bfe0f49a7315d4f (diff)
downloadupstream-e3889bcf7c8ad2eff0eaeb62dbc4c0977a972788.tar.gz
upstream-e3889bcf7c8ad2eff0eaeb62dbc4c0977a972788.tar.bz2
upstream-e3889bcf7c8ad2eff0eaeb62dbc4c0977a972788.zip
update 3.2 patches
sync with lantiq kernel series SVN-Revision: 31260
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 2bc498d1b2..f0bc99e91b 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);