diff options
author | John Crispin <blogic@openwrt.org> | 2011-05-29 21:19:26 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2011-05-29 21:19:26 +0000 |
commit | 9af744afe836c76a099b67a7ea976724b1363923 (patch) | |
tree | b9da76295132f5efbc18c34b9de3db80de664403 /target/linux/lantiq/patches-2.6.32/530-register_tapi.patch | |
parent | c4509d34ea9afc5e373c353c48ccdf327f58217e (diff) | |
download | upstream-9af744afe836c76a099b67a7ea976724b1363923.tar.gz upstream-9af744afe836c76a099b67a7ea976724b1363923.tar.bz2 upstream-9af744afe836c76a099b67a7ea976724b1363923.zip |
[lantiq]
* backport 2.6.8 patches to .39 / .32.33
* remove lqtapi
* bump tapi/dsl to .39
* migrate to new ltq_ style api
* add amazon_se support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27026 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches-2.6.32/530-register_tapi.patch')
-rw-r--r-- | target/linux/lantiq/patches-2.6.32/530-register_tapi.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-2.6.32/530-register_tapi.patch b/target/linux/lantiq/patches-2.6.32/530-register_tapi.patch new file mode 100644 index 0000000000..a581064443 --- /dev/null +++ b/target/linux/lantiq/patches-2.6.32/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 +@@ -66,6 +66,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, |