mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[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
This commit is contained in:
@@ -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(<q_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(<q_spi);
|
||||
|
||||
Reference in New Issue
Block a user