Skip to content

Commit 5831fdb

Browse files
FlyGoatpaulburton
authored andcommitted
MIPS: Loongson2ef: clean up loongson64 related code
Remove unrelevent macros, defines and codes from loongson2ef mach. Also rename some defines to match new naming. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Paul Burton <paulburton@kernel.org> Cc: linux-mips@vger.kernel.org Cc: paul.burton@mips.com
1 parent 71e2f4d commit 5831fdb

30 files changed

Lines changed: 56 additions & 1097 deletions

‎arch/mips/include/asm/mach-loongson2ef/boot_param.h‎

Lines changed: 0 additions & 221 deletions
This file was deleted.

‎arch/mips/include/asm/mach-loongson2ef/cpu-feature-overrides.h‎

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
/*
2-
* This file is subject to the terms and conditions of the GNU General Public
3-
* License. See the file "COPYING" in the main directory of this archive
4-
* for more details.
5-
*
63
* Copyright (C) 2009 Wu Zhangjin <wuzhangjin@gmail.com>
74
* Copyright (C) 2009 Philippe Vachon <philippe@cowpig.ca>
85
* Copyright (C) 2009 Zhang Le <r0bertz@gentoo.org>
@@ -13,8 +10,8 @@
1310
* loongson2f user manual.
1411
*/
1512

16-
#ifndef __ASM_MACH_LOONGSON64_CPU_FEATURE_OVERRIDES_H
17-
#define __ASM_MACH_LOONGSON64_CPU_FEATURE_OVERRIDES_H
13+
#ifndef __ASM_MACH_LOONGSON2EF_CPU_FEATURE_OVERRIDES_H
14+
#define __ASM_MACH_LOONGSON2EF_CPU_FEATURE_OVERRIDES_H
1815

1916
#define cpu_has_32fpr 1
2017
#define cpu_has_3k_cache 0
@@ -44,10 +41,4 @@
4441
#define cpu_has_vtag_icache 0
4542
#define cpu_has_watch 1
4643

47-
#ifdef CONFIG_CPU_LOONGSON64
48-
#define cpu_has_wsbh 1
49-
#define cpu_has_ic_fills_f_dc 1
50-
#define cpu_hwrena_impl_bits 0xc0000000
51-
#endif
52-
5344
#endif /* __ASM_MACH_LOONGSON64_CPU_FEATURE_OVERRIDES_H */

‎arch/mips/include/asm/mach-loongson2ef/irq.h‎

Lines changed: 0 additions & 44 deletions
This file was deleted.

‎arch/mips/include/asm/mach-loongson2ef/kernel-entry-init.h‎

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)