diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-11-03 15:15:52 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-11-03 15:15:52 +0000 |
commit | dfffaea839fd631ec0b3d4f58540316a04c4f2ad (patch) | |
tree | b174b3a3d03c0c2b4a9b9c980efe38089069a2d4 /target/linux/lantiq/patches-2.6.39/420-spi3.patch | |
parent | de6080b7c2e5f3d2a9ed9677e3df0667bfc31842 (diff) |
lantiq: bump to 3.1
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28721 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches-2.6.39/420-spi3.patch')
-rw-r--r-- | target/linux/lantiq/patches-2.6.39/420-spi3.patch | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/target/linux/lantiq/patches-2.6.39/420-spi3.patch b/target/linux/lantiq/patches-2.6.39/420-spi3.patch deleted file mode 100644 index b8bb0e487..000000000 --- a/target/linux/lantiq/patches-2.6.39/420-spi3.patch +++ /dev/null @@ -1,73 +0,0 @@ -From: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com> -Date: Thu, 3 Mar 2011 20:42:26 +0000 (+0100) -Subject: MIPS: lantiq: Add device register helper for SPI controller and devices -X-Git-Url: http://nbd.name/gitweb.cgi?p=lantiq.git;a=commitdiff_plain;h=b35b07062b718ece9b9cb7b23b12d83a087eafb0;hp=653c95b8b9066c9c6ac08bd64d0ceee439e9fd90 - -MIPS: lantiq: Add device register helper for SPI controller and devices - -Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com> ---- - ---- a/arch/mips/lantiq/xway/devices.c -+++ b/arch/mips/lantiq/xway/devices.c -@@ -21,6 +21,7 @@ - #include <linux/io.h> - #include <linux/gpio.h> - #include <linux/leds.h> -+#include <linux/spi/spi.h> - - #include <asm/bootinfo.h> - #include <asm/irq.h> -@@ -119,3 +120,41 @@ ltq_register_etop(struct ltq_eth_data *e - platform_device_register(<q_etop); - } - } -+ -+static struct resource ltq_spi_resources[] = { -+ { -+ .start = LTQ_SSC_BASE_ADDR, -+ .end = LTQ_SSC_BASE_ADDR + LTQ_SSC_SIZE - 1, -+ .flags = IORESOURCE_MEM, -+ }, -+ IRQ_RES(spi_tx, LTQ_SSC_TIR), -+ IRQ_RES(spi_rx, LTQ_SSC_RIR), -+ IRQ_RES(spi_err, LTQ_SSC_EIR), -+}; -+ -+static struct resource ltq_spi_resources_ar9[] = { -+ { -+ .start = LTQ_SSC_BASE_ADDR, -+ .end = LTQ_SSC_BASE_ADDR + LTQ_SSC_SIZE - 1, -+ .flags = IORESOURCE_MEM, -+ }, -+ IRQ_RES(spi_tx, LTQ_SSC_TIR_AR9), -+ IRQ_RES(spi_rx, LTQ_SSC_RIR_AR9), -+ IRQ_RES(spi_err, LTQ_SSC_EIR), -+}; -+ -+static struct platform_device ltq_spi = { -+ .name = "ltq-spi", -+ .resource = ltq_spi_resources, -+ .num_resources = ARRAY_SIZE(ltq_spi_resources), -+}; -+ -+void __init ltq_register_spi(struct ltq_spi_platform_data *pdata, -+ struct spi_board_info const *info, unsigned n) -+{ -+ if(ltq_is_ar9()) -+ ltq_spi.resource = ltq_spi_resources_ar9; -+ spi_register_board_info(info, n); -+ ltq_spi.dev.platform_data = pdata; -+ platform_device_register(<q_spi); -+} ---- a/arch/mips/include/asm/mach-lantiq/xway/lantiq_irq.h -+++ b/arch/mips/include/asm/mach-lantiq/xway/lantiq_irq.h -@@ -27,6 +27,8 @@ - - #define LTQ_SSC_TIR (INT_NUM_IM0_IRL0 + 15) - #define LTQ_SSC_RIR (INT_NUM_IM0_IRL0 + 14) -+#define LTQ_SSC_TIR_AR9 (INT_NUM_IM0_IRL0 + 14) -+#define LTQ_SSC_RIR_AR9 (INT_NUM_IM0_IRL0 + 15) - #define LTQ_SSC_EIR (INT_NUM_IM0_IRL0 + 16) - - #define LTQ_MEI_DYING_GASP_INT (INT_NUM_IM1_IRL0 + 21) |