diff options
Diffstat (limited to 'board/qemu-mips')
-rw-r--r-- | board/qemu-mips/Kconfig | 26 | ||||
-rw-r--r-- | board/qemu-mips/MAINTAINERS | 14 | ||||
-rw-r--r-- | board/qemu-mips/Makefile | 7 | ||||
-rw-r--r-- | board/qemu-mips/lowlevel_init.S | 40 | ||||
-rw-r--r-- | board/qemu-mips/qemu-mips.c | 85 |
5 files changed, 0 insertions, 172 deletions
diff --git a/board/qemu-mips/Kconfig b/board/qemu-mips/Kconfig deleted file mode 100644 index e696a12192..0000000000 --- a/board/qemu-mips/Kconfig +++ /dev/null @@ -1,26 +0,0 @@ -if TARGET_QEMU_MIPS - -config SYS_BOARD - default "qemu-mips" - -config SYS_CONFIG_NAME - default "qemu-mips" if 32BIT - default "qemu-mips64" if 64BIT - -config SYS_TEXT_BASE - default 0xbfc00000 if 32BIT - default 0xffffffffbfc00000 if 64BIT - -config SYS_DCACHE_SIZE - default 16384 - -config SYS_DCACHE_LINE_SIZE - default 32 - -config SYS_ICACHE_SIZE - default 16384 - -config SYS_ICACHE_LINE_SIZE - default 32 - -endif diff --git a/board/qemu-mips/MAINTAINERS b/board/qemu-mips/MAINTAINERS deleted file mode 100644 index 334f9d8ee9..0000000000 --- a/board/qemu-mips/MAINTAINERS +++ /dev/null @@ -1,14 +0,0 @@ -QEMU-MIPS BOARD -M: Vlad Lungu <vlad.lungu@windriver.com> -S: Maintained -F: board/qemu-mips/ -F: include/configs/qemu-mips.h -F: configs/qemu_mips_defconfig - -QEMU_MIPSEL BOARD -#M: - -S: Maintained -F: configs/qemu_mipsel_defconfig -F: include/configs/qemu-mips64.h -F: configs/qemu_mips64_defconfig -F: configs/qemu_mips64el_defconfig diff --git a/board/qemu-mips/Makefile b/board/qemu-mips/Makefile deleted file mode 100644 index 98e3874090..0000000000 --- a/board/qemu-mips/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2003-2006 -# Wolfgang Denk, DENX Software Engineering, wd@denx.de. - -obj-y = qemu-mips.o -obj-y += lowlevel_init.o diff --git a/board/qemu-mips/lowlevel_init.S b/board/qemu-mips/lowlevel_init.S deleted file mode 100644 index b0f7072701..0000000000 --- a/board/qemu-mips/lowlevel_init.S +++ /dev/null @@ -1,40 +0,0 @@ -/* Memory sub-system initialization code */ - -#include <config.h> -#include <asm/regdef.h> -#include <asm/mipsregs.h> - - .text - .set noreorder - .set mips32 - - .globl lowlevel_init -lowlevel_init: - - /* - * Step 2) Establish Status Register - * (set BEV, clear ERL, clear EXL, clear IE) - */ - li t1, 0x00400000 - mtc0 t1, CP0_STATUS - - /* - * Step 3) Establish CP0 Config0 - * (set K0=3) - */ - li t1, 0x00000003 - mtc0 t1, CP0_CONFIG - - /* - * Step 7) Establish Cause - * (set IV bit) - */ - li t1, 0x00800000 - mtc0 t1, CP0_CAUSE - - /* Establish Wired (and Random) */ - mtc0 zero, CP0_WIRED - nop - - jr ra - nop diff --git a/board/qemu-mips/qemu-mips.c b/board/qemu-mips/qemu-mips.c deleted file mode 100644 index f57091739e..0000000000 --- a/board/qemu-mips/qemu-mips.c +++ /dev/null @@ -1,85 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * (C) Copyright 2007 - * Vlad Lungu vlad.lungu@windriver.com - */ - -#include <common.h> -#include <command.h> -#include <init.h> -#include <net.h> -#include <asm/global_data.h> -#include <asm/mipsregs.h> -#include <asm/io.h> -#include <netdev.h> - -DECLARE_GLOBAL_DATA_PTR; - -int dram_init(void) -{ - /* Sdram is setup by assembler code */ - /* If memory could be changed, we should return the true value here */ - gd->ram_size = MEM_SIZE * 1024 * 1024; - - return 0; -} - -int checkboard(void) -{ - u32 proc_id; - u32 config1; - - proc_id = read_c0_prid(); - printf("Board: Qemu -M mips CPU: "); - switch (proc_id) { - case 0x00018000: - printf("4Kc"); - break; - case 0x00018400: - printf("4KEcR1"); - break; - case 0x00019000: - printf("4KEc"); - break; - case 0x00019300: - config1 = read_c0_config1(); - if (config1 & 1) - printf("24Kf"); - else - printf("24Kc"); - break; - case 0x00019500: - printf("34Kf"); - break; - case 0x00000400: - printf("R4000"); - break; - case 0x00018100: - config1 = read_c0_config1(); - if (config1 & 1) - printf("5Kf"); - else - printf("5Kc"); - break; - case 0x000182a0: - printf("20Kc"); - break; - - default: - printf("unknown"); - } - printf(" proc_id=0x%x\n", proc_id); - - return 0; -} - -int misc_init_r(void) -{ - set_io_port_base(0); - return 0; -} - -int board_eth_init(struct bd_info *bis) -{ - return ne2k_register(); -} |