Skip to content

Commit

Permalink
MIPS: Hardwire detection of DSP ASE Rev 2 for systems, as required.
Browse files Browse the repository at this point in the history
Most supported systems currently hardwire cpu_has_dsp to 0, so we also
can disable support for cpu_has_dsp2 resulting in a slightly smaller
kernel.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 11, 2012
1 parent ee80f7c commit 4750325
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/mips/include/asm/mach-ath79/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
#define cpu_has_mips64r1 0
#define cpu_has_mips64r2 0

#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_mipsmt 0

#define cpu_has_64bits 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-au1x00/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#define cpu_has_mips64r1 0
#define cpu_has_mips64r2 0
#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_mipsmt 0
#define cpu_has_userlocal 0
#define cpu_has_nofpuex 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-bcm63xx/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#define cpu_has_mips64r2 0

#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_mipsmt 0
#define cpu_has_userlocal 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#define cpu_has_mips64r2 1
#define cpu_has_mips_r2_exec_hazard 0
#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_mipsmt 0
#define cpu_has_vint 0
#define cpu_has_veic 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-cobalt/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#define cpu_has_ic_fills_f_dc 0
#define cpu_icache_snoops_remote_store 0
#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_mipsmt 0
#define cpu_has_userlocal 0

Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-ip22/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#define cpu_has_ic_fills_f_dc 0

#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_mipsmt 0
#define cpu_has_userlocal 0

Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-ip27/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define cpu_has_dc_aliases 0
#define cpu_has_ic_fills_f_dc 0
#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_icache_snoops_remote_store 1
#define cpu_has_mipsmt 0
#define cpu_has_userlocal 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-ip28/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define cpu_has_dc_aliases 0 /* see probe_pcache() */
#define cpu_has_ic_fills_f_dc 0
#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_icache_snoops_remote_store 1
#define cpu_has_mipsmt 0
#define cpu_has_userlocal 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-ip32/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#define cpu_has_vtag_icache 0
#define cpu_has_ic_fills_f_dc 0
#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_4k_cache 1
#define cpu_has_mipsmt 0
#define cpu_has_userlocal 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-jz4740/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#define cpu_has_mips64r1 0
#define cpu_has_mips64r2 0
#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_mipsmt 0
#define cpu_has_userlocal 0
#define cpu_has_nofpuex 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#define cpu_has_dc_aliases (PAGE_SIZE < 0x4000)
#define cpu_has_divec 0
#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_ejtag 0
#define cpu_has_fpu 1
#define cpu_has_ic_fills_f_dc 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define cpu_has_vtag_icache 0
#define cpu_has_ic_fills_f_dc 1
#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_mipsmt 0
#define cpu_icache_snoops_remote_store 1

Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-powertv/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#define cpu_has_mips64r1 0
#define cpu_has_mips64r2 0
#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_mipsmt 0
#define cpu_has_userlocal 0
#define cpu_has_nofpuex 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-rc32434/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
#define cpu_has_mips64r2 0

#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_mipsmt 0

/* #define cpu_has_nofpuex ? */
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-rm/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#define cpu_has_dc_aliases (PAGE_SIZE < 0x4000)
#define cpu_has_ic_fills_f_dc 0
#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_nofpuex 0
#define cpu_has_64bits 1
#define cpu_has_mipsmt 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-sibyte/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define cpu_has_dc_aliases 0
#define cpu_has_ic_fills_f_dc 0
#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_mipsmt 0
#define cpu_has_userlocal 0
#define cpu_icache_snoops_remote_store 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-tx49xx/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define cpu_has_vtag_icache 0
#define cpu_has_ic_fills_f_dc 0
#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_mipsmt 0
#define cpu_has_userlocal 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define cpu_has_dc_aliases 0
#define cpu_has_ic_fills_f_dc 0
#define cpu_has_dsp 0
#define cpu_has_dsp2 0
#define cpu_has_mipsmt 0
#define cpu_has_userlocal 0
#define cpu_icache_snoops_remote_store 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#define cpu_has_mips16 1
#define cpu_has_dsp 1
/* #define cpu_has_dsp2 ??? - do runtime detection */
#define cpu_has_mipsmt 1
#define cpu_has_fpu 0

Expand Down

0 comments on commit 4750325

Please sign in to comment.