summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx-2.6/patches/011-include_mach_bcm963xx.patch
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-07-07 21:04:02 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-07-07 21:04:02 +0000
commit4e782d4c71493624142f1cad9d2254d187c5e4a2 (patch)
treec87f6537b0f16e1af11cd595ef258d109c084120 /target/linux/brcm63xx-2.6/patches/011-include_mach_bcm963xx.patch
parent5cc7a3dd62bd3d2ff9a1530787052bca84acea8c (diff)
Fix brcm63xx support. Now a kernel is booting, detecting the flash, and can probably mount a filesystem
Huge thanks to Nico Huber for providing working patches ! git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4117 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx-2.6/patches/011-include_mach_bcm963xx.patch')
-rw-r--r--target/linux/brcm63xx-2.6/patches/011-include_mach_bcm963xx.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/target/linux/brcm63xx-2.6/patches/011-include_mach_bcm963xx.patch b/target/linux/brcm63xx-2.6/patches/011-include_mach_bcm963xx.patch
new file mode 100644
index 000000000..ad0cbbba5
--- /dev/null
+++ b/target/linux/brcm63xx-2.6/patches/011-include_mach_bcm963xx.patch
@@ -0,0 +1,40 @@
+diff -Naurp linux-2.6.16.7-generic-patched/include/asm-mips/mach-bcm963xx/cpu-feature-overrides.h linux-2.6.16.7-patched/include/asm-mips/mach-bcm963xx/cpu-feature-overrides.h
+--- linux-2.6.16.7-generic-patched/include/asm-mips/mach-bcm963xx/cpu-feature-overrides.h 1970-01-01 01:00:00.000000000 +0100
++++ linux-2.6.16.7-patched/include/asm-mips/mach-bcm963xx/cpu-feature-overrides.h 2006-07-05 15:21:58.000000000 +0200
+@@ -0,0 +1,36 @@
++#ifndef __ASM_MACH_BCM963XX_CPU_FEATURE_OVERRIDES_H
++#define __ASM_MACH_BCM963XX_CPU_FEATURE_OVERRIDES_H
++
++#define cpu_has_tlb 1
++#define cpu_has_4kex 4
++#define cpu_has_4ktlb 8
++#define cpu_has_fpu 0
++#define cpu_has_32fpr 0
++#define cpu_has_counter 0x40
++#define cpu_has_watch 0
++#define cpu_has_mips16 0
++#define cpu_has_divec 0x200
++#define cpu_has_vce 0
++#define cpu_has_cache_cdex_p 0
++#define cpu_has_cache_cdex_s 0
++#define cpu_has_prefetch 0x40000
++#define cpu_has_mcheck 0x2000
++#define cpu_has_ejtag 0x4000
++#define cpu_has_llsc 0x10000
++#define cpu_has_vtag_icache 0
++#define cpu_has_dc_aliases 0
++#define cpu_has_ic_fills_f_dc 0
++
++#define cpu_has_nofpuex 0
++#define cpu_has_64bits 0
++#define cpu_has_64bit_zero_reg 0
++#define cpu_has_64bit_gp_regs 0
++#define cpu_has_64bit_addresses 0
++
++#define cpu_has_subset_pcaches 0
++
++#define cpu_dcache_line_size() 16
++#define cpu_icache_line_size() 16
++#define cpu_scache_line_size() 0
++
++#endif /* __ASM_MACH_BCM963XX_CPU_FEATURE_OVERRIDES_H */