diff options
author | John Crispin <john@openwrt.org> | 2011-07-06 17:27:17 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2011-07-06 17:27:17 +0000 |
commit | a674aabe5439b8a507e31833a1fcb3bab925b050 (patch) | |
tree | e29576e0d27a4edfa02b0295bf2d8a4a27f3ce39 /target/linux/lantiq/patches-3.0/530-register_tapi.patch | |
parent | abb1ca01a7121b36aa04a16da5d27f2fed02f3e8 (diff) | |
download | upstream-a674aabe5439b8a507e31833a1fcb3bab925b050.tar.gz upstream-a674aabe5439b8a507e31833a1fcb3bab925b050.tar.bz2 upstream-a674aabe5439b8a507e31833a1fcb3bab925b050.zip |
get ready for 3.0
SVN-Revision: 27496
Diffstat (limited to 'target/linux/lantiq/patches-3.0/530-register_tapi.patch')
-rw-r--r-- | target/linux/lantiq/patches-3.0/530-register_tapi.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-3.0/530-register_tapi.patch b/target/linux/lantiq/patches-3.0/530-register_tapi.patch new file mode 100644 index 0000000000..286c0f0234 --- /dev/null +++ b/target/linux/lantiq/patches-3.0/530-register_tapi.patch @@ -0,0 +1,42 @@ +--- a/arch/mips/lantiq/devices.c ++++ b/arch/mips/lantiq/devices.c +@@ -120,3 +120,20 @@ + 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_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 @@ + 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, |