Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfashe...
[pandora-kernel.git] / arch / mips / gt64120 / wrppmc / setup.c
index ed58c13..ca65c84 100644 (file)
 #include <linux/init.h>
 #include <linux/string.h>
 #include <linux/kernel.h>
-#include <linux/tty.h>
-#include <linux/serial.h>
-#include <linux/serial_core.h>
-#include <linux/serial_8250.h>
 #include <linux/pm.h>
 
 #include <asm/io.h>
@@ -98,54 +94,19 @@ void __init prom_free_prom_memory(void)
 {
 }
 
-#ifdef CONFIG_SERIAL_8250
-static void wrppmc_setup_serial(void)
-{
-       struct uart_port up;
-
-       memset(&up, 0x00, sizeof(struct uart_port));
-
-       /*
-        * A note about mapbase/membase
-        * -) mapbase is the physical address of the IO port.
-        * -) membase is an 'ioremapped' cookie.
-        */
-       up.line = 0;
-       up.type = PORT_16550;
-       up.iotype = UPIO_MEM;
-       up.mapbase = WRPPMC_UART16550_BASE;
-       up.membase = ioremap(up.mapbase, 8);
-       up.irq = WRPPMC_UART16550_IRQ;
-       up.uartclk = WRPPMC_UART16550_CLOCK;
-       up.flags = UPF_SKIP_TEST/* | UPF_BOOT_AUTOCONF */;
-       up.regshift = 0;
-
-       early_serial_setup(&up);
-}
-#endif
-
 void __init plat_mem_setup(void)
 {
-       extern void wrppmc_time_init(void);
        extern void wrppmc_machine_restart(char *command);
        extern void wrppmc_machine_halt(void);
-       extern void wrppmc_machine_power_off(void);
 
        _machine_restart = wrppmc_machine_restart;
        _machine_halt    = wrppmc_machine_halt;
-       pm_power_off     = wrppmc_machine_power_off;
-
-       /* Use MIPS Count/Compare Timer */
-       board_time_init   = wrppmc_time_init;
+       pm_power_off     = wrppmc_machine_halt;
 
        /* This makes the operations of 'in/out[bwl]' to the
         * physical address ( < KSEG0) can work via KSEG1
         */
        set_io_port_base(KSEG1);
-
-#ifdef CONFIG_SERIAL_8250
-       wrppmc_setup_serial();
-#endif
 }
 
 const char *get_system_type(void)
@@ -159,9 +120,6 @@ const char *get_system_type(void)
  */
 void __init prom_init(void)
 {
-       mips_machgroup = MACH_GROUP_WINDRIVER;
-       mips_machtype = MACH_WRPPMC;
-
        add_memory_region(WRPPMC_SDRAM_SCS0_BASE, WRPPMC_SDRAM_SCS0_SIZE, BOOT_MEM_RAM);
        add_memory_region(WRPPMC_BOOTROM_BASE, WRPPMC_BOOTROM_SIZE, BOOT_MEM_ROM_DATA);