diff mbox series

[118/120] MIPS: PS2: Define the PlayStation 2 platform

Message ID c0e5a1bfb9ed6f89025e6e4c8aa70979d83ae40f.1567326213.git.noring@nocrew.org (mailing list archive)
State RFC
Headers show
Series Linux for the PlayStation 2 | expand

Commit Message

Fredrik Noring Sept. 1, 2019, 4:36 p.m. UTC
Signed-off-by: Fredrik Noring <noring@nocrew.org>
---
 arch/mips/Kbuild.platforms |  1 +
 arch/mips/ps2/Makefile     |  1 +
 arch/mips/ps2/Platform     |  7 +++++++
 arch/mips/ps2/prom.c       | 18 ++++++++++++++++++
 4 files changed, 27 insertions(+)
 create mode 100644 arch/mips/ps2/Platform
 create mode 100644 arch/mips/ps2/prom.c
diff mbox series

Patch

diff --git a/arch/mips/Kbuild.platforms b/arch/mips/Kbuild.platforms
index 0de839882106..84be263f44d2 100644
--- a/arch/mips/Kbuild.platforms
+++ b/arch/mips/Kbuild.platforms
@@ -24,6 +24,7 @@  platforms += netlogic
 platforms += paravirt
 platforms += pic32
 platforms += pistachio
+platforms += ps2
 platforms += pmcs-msp71xx
 platforms += pnx833x
 platforms += ralink
diff --git a/arch/mips/ps2/Makefile b/arch/mips/ps2/Makefile
index 925952a83625..dbc1bdbac2a8 100644
--- a/arch/mips/ps2/Makefile
+++ b/arch/mips/ps2/Makefile
@@ -4,6 +4,7 @@  obj-y		+= identify.o
 obj-y		+= intc-irq.o
 obj-y		+= irq.o
 obj-y		+= memory.o
+obj-y		+= prom.o
 obj-y		+= reboot.o
 obj-y		+= rom.o
 obj-m		+= rom-sysfs.o
diff --git a/arch/mips/ps2/Platform b/arch/mips/ps2/Platform
new file mode 100644
index 000000000000..5e9695f86b99
--- /dev/null
+++ b/arch/mips/ps2/Platform
@@ -0,0 +1,7 @@ 
+#
+# PlayStation 2
+#
+platform-$(CONFIG_SONY_PS2)	+= ps2/
+cflags-$(CONFIG_SONY_PS2)	+= -I$(srctree)/arch/mips/include/asm/mach-ps2
+load-$(CONFIG_SONY_PS2)		+= 0x80010000
+zload-$(CONFIG_SONY_PS2)	+= 0x00800000
diff --git a/arch/mips/ps2/prom.c b/arch/mips/ps2/prom.c
new file mode 100644
index 000000000000..f4d594c4457e
--- /dev/null
+++ b/arch/mips/ps2/prom.c
@@ -0,0 +1,18 @@ 
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * PlayStation 2 PROM handling
+ */
+
+#include <linux/module.h>
+
+void prom_putchar(char c)
+{
+}
+
+void __init prom_init(void)
+{
+}
+
+void __init prom_free_prom_memory(void)
+{
+}