]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/mips/alchemy/devboards/pb1000/board_setup.c
MIPS: Alchemy: Fix warnings in DB1x00 / PB1000 / PB1550 board setup code
[karo-tx-linux.git] / arch / mips / alchemy / devboards / pb1000 / board_setup.c
index cd273545e810df42cc9c5e2e636485a0d5fa7cb8..50fff504ae05cf395a05927e58f996686f9ef45a 100644 (file)
 #include <prom.h>
 
 
-struct au1xxx_irqmap __initdata au1xxx_irq_map[] = {
-       { AU1000_GPIO_15, IRQF_TRIGGER_LOW, 0 },
-};
-
-
 const char *get_system_type(void)
 {
        return "Alchemy Pb1000";
@@ -46,19 +41,18 @@ void board_reset(void)
 {
 }
 
-void __init board_init_irq(void)
-{
-       au1xxx_setup_irqmap(au1xxx_irq_map, ARRAY_SIZE(au1xxx_irq_map));
-}
-
 void __init board_setup(void)
 {
        u32 pin_func, static_cfg0;
        u32 sys_freqctrl, sys_clksrc;
        u32 prid = read_c0_prid();
+       char *argptr;
+
+       sys_freqctrl = 0;
+       sys_clksrc = 0;
+       argptr = prom_getcmdline();
 
 #ifdef CONFIG_SERIAL_8250_CONSOLE
-       char *argptr = prom_getcmdline();
        argptr = strstr(argptr, "console=");
        if (argptr == NULL) {
                argptr = prom_getcmdline();
@@ -193,3 +187,10 @@ void __init board_setup(void)
                break;
        }
 }
+
+static int __init pb1000_init_irq(void)
+{
+       set_irq_type(AU1000_GPIO15_INT, IRQF_TRIGGER_LOW);
+       return 0;
+}
+arch_initcall(pb1000_init_irq);