mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-09 15:49:42 +02:00
b43c756e4c
* add gigasx76x update * rebase patches * add arv752DPW arv7525PD * fixes gpio_keys Signed-off-by: Luka Perkov <openwrt@lukaperkov.net> Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27665 3c298f89-4303-0410-b956-a3cf2f4a3e73
43 lines
1.1 KiB
Diff
43 lines
1.1 KiB
Diff
--- a/arch/mips/lantiq/devices.c
|
|
+++ b/arch/mips/lantiq/devices.c
|
|
@@ -120,3 +120,20 @@ void __init ltq_register_pci(struct ltq_
|
|
pr_err("kernel is compiled without PCI support\n");
|
|
}
|
|
#endif
|
|
+
|
|
+static unsigned int *cp1_base = 0;
|
|
+unsigned int*
|
|
+ltq_get_cp1_base(void)
|
|
+{
|
|
+ return cp1_base;
|
|
+}
|
|
+EXPORT_SYMBOL(ltq_get_cp1_base);
|
|
+
|
|
+void __init
|
|
+ltq_register_tapi(void)
|
|
+{
|
|
+#define CP1_SIZE (1 << 20)
|
|
+ dma_addr_t dma;
|
|
+ cp1_base =
|
|
+ (void*)CPHYSADDR(dma_alloc_coherent(NULL, CP1_SIZE, &dma, GFP_ATOMIC));
|
|
+}
|
|
--- a/arch/mips/lantiq/devices.h
|
|
+++ b/arch/mips/lantiq/devices.h
|
|
@@ -19,5 +19,6 @@ extern void ltq_register_nor(struct phys
|
|
extern void ltq_register_wdt(void);
|
|
extern void ltq_register_asc(int port);
|
|
extern void ltq_register_pci(struct ltq_pci_data *data);
|
|
+extern void ltq_register_tapi(void);
|
|
|
|
#endif
|
|
--- a/arch/mips/lantiq/xway/mach-easy50712.c
|
|
+++ b/arch/mips/lantiq/xway/mach-easy50712.c
|
|
@@ -61,6 +61,7 @@ static void __init easy50712_init(void)
|
|
ltq_register_nor(&easy50712_flash_data);
|
|
ltq_register_pci(<q_pci_data);
|
|
ltq_register_etop(<q_eth_data);
|
|
+ ltq_register_tapi();
|
|
}
|
|
|
|
MIPS_MACHINE(LTQ_MACH_EASY50712,
|