The various definitions related to GT64120 system controller were split between two headers: 'asm/gt64120.h' and 'mach/mach-gt64120.h'. It seems that they were taken from Linux in this form. No reason to keep it like that though, so unify them into 'mach/gt64120.h'. Signed-off-by: Denis Orlov <denorl2009@xxxxxxxxx> --- arch/mips/boards/qemu-malta/lowlevel.S | 5 ++--- .../asm => mach-malta/include/mach}/gt64120.h | 13 ++++++++----- .../mips/mach-malta/include/mach/mach-gt64120.h | 17 ----------------- arch/mips/mach-malta/pci.c | 4 +--- 4 files changed, 11 insertions(+), 28 deletions(-) rename arch/mips/{include/asm => mach-malta/include/mach}/gt64120.h (92%) delete mode 100644 arch/mips/mach-malta/include/mach/mach-gt64120.h diff --git a/arch/mips/boards/qemu-malta/lowlevel.S b/arch/mips/boards/qemu-malta/lowlevel.S index 541d62fc2a..09087ad916 100644 --- a/arch/mips/boards/qemu-malta/lowlevel.S +++ b/arch/mips/boards/qemu-malta/lowlevel.S @@ -11,10 +11,9 @@ #include <asm/pbl_macros.h> #include <asm/pbl_nmon.h> #include <linux/sizes.h> - #include <asm/addrspace.h> -#include <asm/gt64120.h> -#include <mach/mach-gt64120.h> + +#include <mach/gt64120.h> #ifdef CONFIG_CPU_LITTLE_ENDIAN #define GT_CPU_TO_LE32(x) (x) diff --git a/arch/mips/include/asm/gt64120.h b/arch/mips/mach-malta/include/mach/gt64120.h similarity index 92% rename from arch/mips/include/asm/gt64120.h rename to arch/mips/mach-malta/include/mach/gt64120.h index 34d2382593..f8a257acb7 100644 --- a/arch/mips/include/asm/gt64120.h +++ b/arch/mips/mach-malta/include/mach/gt64120.h @@ -6,12 +6,15 @@ * Maciej W. Rozycki <macro@xxxxxxxx> * Copyright (C) 2005 Ralf Baechle (ralf@xxxxxxxxxxxxxx) */ -#ifndef _ASM_GT64120_H -#define _ASM_GT64120_H -#define MSK(n) ((1 << (n)) - 1) +#ifndef _MALTA_GT64120_H +#define _MALTA_GT64120_H -#define GT_DEF_BASE 0x14000000 +#define GT_DEF_BASE 0x14000000 +#define MIPS_GT_BASE 0x1be00000 +#define GT64120_BASE CKSEG1ADDR(MIPS_GT_BASE) + +#define MSK(n) ((1 << (n)) - 1) /* * Register offset addresses @@ -85,4 +88,4 @@ #define GT_READ(ofs) le32_to_cpu(__GT_READ(ofs)) #define GT_WRITE(ofs, data) __GT_WRITE(ofs, cpu_to_le32(data)) -#endif /* _ASM_GT64120_H */ +#endif /* _MALTA_GT64120_H */ diff --git a/arch/mips/mach-malta/include/mach/mach-gt64120.h b/arch/mips/mach-malta/include/mach/mach-gt64120.h deleted file mode 100644 index 20ac4d94d6..0000000000 --- a/arch/mips/mach-malta/include/mach/mach-gt64120.h +++ /dev/null @@ -1,17 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -/* - * This is a direct copy of the ev96100.h file, with a global - * search and replace. The numbers are the same. - * - * The reason I'm duplicating this is so that the 64120/96100 - * defines won't be confusing in the source code. - */ -#ifndef _ASM_MACH_MIPS_MACH_GT64120_DEP_H -#define _ASM_MACH_MIPS_MACH_GT64120_DEP_H - -#define MIPS_GT_BASE 0x1be00000 - -#define GT64120_BASE CKSEG1ADDR(MIPS_GT_BASE) - -#endif /* _ASM_MACH_MIPS_MACH_GT64120_DEP_H */ diff --git a/arch/mips/mach-malta/pci.c b/arch/mips/mach-malta/pci.c index 0ab239f509..c9c1c7790b 100644 --- a/arch/mips/mach-malta/pci.c +++ b/arch/mips/mach-malta/pci.c @@ -7,11 +7,9 @@ #include <mach/hardware.h> #include <asm/io.h> #include <asm/addrspace.h> - #include <linux/pci.h> -#include <asm/gt64120.h> -#include <mach/mach-gt64120.h> +#include <mach/gt64120.h> #define PCI_ACCESS_READ 0 #define PCI_ACCESS_WRITE 1 -- 2.41.0