Commit baec970a authored by Lauri Kasanen's avatar Lauri Kasanen Committed by Thomas Bogendoerfer
Browse files

mips: Add N64 machine type



Add support for the Nintendo 64.

Signed-off-by: default avatarLauri Kasanen <cand@gmx.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 65ce6197
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ platform-$(CONFIG_MACH_LOONGSON2EF) += loongson2ef/
platform-$(CONFIG_MACH_LOONGSON32)	+= loongson32/
platform-$(CONFIG_MACH_LOONGSON64)	+= loongson64/
platform-$(CONFIG_MIPS_MALTA)		+= mti-malta/
platform-$(CONFIG_MACH_NINTENDO64)	+= n64/
platform-$(CONFIG_NLM_COMMON)		+= netlogic/
platform-$(CONFIG_PIC32MZDA)		+= pic32/
platform-$(CONFIG_MACH_PISTACHIO)	+= pistachio/
+12 −0
Original line number Diff line number Diff line
@@ -607,6 +607,18 @@ config MACH_VR41XX
	select SYS_SUPPORTS_MIPS16
	select GPIOLIB

config MACH_NINTENDO64
	bool "Nintendo 64 console"
	select CEVT_R4K
	select CSRC_R4K
	select SYS_HAS_CPU_R4300
	select SYS_SUPPORTS_BIG_ENDIAN
	select SYS_SUPPORTS_ZBOOT
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_64BIT_KERNEL
	select DMA_NONCOHERENT
	select IRQ_MIPS_CPU

config RALINK
	bool "Ralink based machines"
	select CEVT_R4K
+9 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_MACH_N64_IRQ_H
#define __ASM_MACH_N64_IRQ_H

#define NR_IRQS 8

#include <asm/mach-generic/irq.h>

#endif /* __ASM_MACH_N64_IRQ_H */
+8 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_MACH_N64_KMALLOC_H
#define __ASM_MACH_N64_KMALLOC_H

/* The default of 128 bytes wastes too much, use 32 (the largest cacheline, I) */
#define ARCH_DMA_MINALIGN L1_CACHE_BYTES

#endif /* __ASM_MACH_N64_KMALLOC_H */

arch/mips/n64/Makefile

0 → 100644
+6 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
#
# Nintendo 64
#

obj-y := init.o irq.o
Loading