aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/qemu
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/qemu')
-rw-r--r--arch/mips/qemu/Makefile7
-rw-r--r--arch/mips/qemu/q-firmware.c18
-rw-r--r--arch/mips/qemu/q-irq.c36
-rw-r--r--arch/mips/qemu/q-mem.c6
-rw-r--r--arch/mips/qemu/q-setup.c25
-rw-r--r--arch/mips/qemu/q-smp.c48
6 files changed, 0 insertions, 140 deletions
diff --git a/arch/mips/qemu/Makefile b/arch/mips/qemu/Makefile
deleted file mode 100644
index 730f459f3e9..00000000000
--- a/arch/mips/qemu/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-#
-# Makefile for Qemu specific kernel interface routines under Linux.
-#
-
-obj-y = q-firmware.o q-irq.o q-mem.o q-setup.o
-
-obj-$(CONFIG_SMP) += q-smp.o
diff --git a/arch/mips/qemu/q-firmware.c b/arch/mips/qemu/q-firmware.c
deleted file mode 100644
index fb2a8673a6b..00000000000
--- a/arch/mips/qemu/q-firmware.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include <linux/init.h>
-#include <linux/string.h>
-#include <asm/addrspace.h>
-#include <asm/bootinfo.h>
-
-void __init prom_init(void)
-{
- int *cmdline;
-
- cmdline = (int *) (CKSEG0 + (0x10 << 20) - 260);
- if (*cmdline == 0x12345678) {
- if (*(char *)(cmdline + 1))
- strcpy (arcs_cmdline, (char *)(cmdline + 1));
- add_memory_region(0x0<<20, cmdline[-1], BOOT_MEM_RAM);
- } else {
- add_memory_region(0x0<<20, 0x10<<20, BOOT_MEM_RAM);
- }
-}
diff --git a/arch/mips/qemu/q-irq.c b/arch/mips/qemu/q-irq.c
deleted file mode 100644
index 3352374c4c7..00000000000
--- a/arch/mips/qemu/q-irq.c
+++ /dev/null
@@ -1,36 +0,0 @@
-#include <linux/init.h>
-#include <linux/linkage.h>
-
-#include <asm/i8259.h>
-#include <asm/mipsregs.h>
-#include <asm/qemu.h>
-#include <asm/system.h>
-#include <asm/time.h>
-
-extern asmlinkage void qemu_handle_int(void);
-
-asmlinkage void plat_irq_dispatch(struct pt_regs *regs)
-{
- unsigned int pending = read_c0_status() & read_c0_cause();
-
- if (pending & 0x8000) {
- ll_timer_interrupt(Q_COUNT_COMPARE_IRQ, regs);
- return;
- }
- if (pending & 0x0400) {
- int irq = i8259_irq();
-
- if (likely(irq >= 0))
- do_IRQ(irq, regs);
-
- return;
- }
-}
-
-void __init arch_init_irq(void)
-{
- mips_hpt_frequency = QEMU_C0_COUNTER_CLOCK; /* 100MHz */
-
- init_i8259_irqs();
- set_c0_status(0x8400);
-}
diff --git a/arch/mips/qemu/q-mem.c b/arch/mips/qemu/q-mem.c
deleted file mode 100644
index d174fac4303..00000000000
--- a/arch/mips/qemu/q-mem.c
+++ /dev/null
@@ -1,6 +0,0 @@
-#include <linux/init.h>
-
-unsigned long __init prom_free_prom_memory(void)
-{
- return 0UL;
-}
diff --git a/arch/mips/qemu/q-setup.c b/arch/mips/qemu/q-setup.c
deleted file mode 100644
index 022eb1af6db..00000000000
--- a/arch/mips/qemu/q-setup.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <linux/init.h>
-#include <asm/io.h>
-#include <asm/time.h>
-
-#define QEMU_PORT_BASE 0xb4000000
-
-const char *get_system_type(void)
-{
- return "Qemu";
-}
-
-static void __init qemu_timer_setup(struct irqaction *irq)
-{
- /* set the clock to 100 Hz */
- outb_p(0x34,0x43); /* binary, mode 2, LSB/MSB, ch 0 */
- outb_p(LATCH & 0xff , 0x40); /* LSB */
- outb(LATCH >> 8 , 0x40); /* MSB */
- setup_irq(0, irq);
-}
-
-void __init plat_setup(void)
-{
- set_io_port_base(QEMU_PORT_BASE);
- board_timer_setup = qemu_timer_setup;
-}
diff --git a/arch/mips/qemu/q-smp.c b/arch/mips/qemu/q-smp.c
deleted file mode 100644
index 5a12354cd57..00000000000
--- a/arch/mips/qemu/q-smp.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 2006 by Ralf Baechle (ralf@linux-mips.org)
- *
- * Symmetric Uniprocessor (TM) Support
- */
-#include <linux/kernel.h>
-#include <linux/sched.h>
-
-/*
- * Send inter-processor interrupt
- */
-void core_send_ipi(int cpu, unsigned int action)
-{
- panic(KERN_ERR "%s called", __FUNCTION__);
-}
-
-/*
- * After we've done initial boot, this function is called to allow the
- * board code to clean up state, if needed
- */
-void prom_init_secondary(void)
-{
-}
-
-void prom_smp_finish(void)
-{
-}
-
-/* Hook for after all CPUs are online */
-void prom_cpus_done(void)
-{
-}
-
-void __init prom_prepare_cpus(unsigned int max_cpus)
-{
- cpus_clear(phys_cpu_present_map);
-}
-
-/*
- * Firmware CPU startup hook
- */
-void prom_boot_secondary(int cpu, struct task_struct *idle)
-{
-}