Do not try to initialise clocks for now, it is borken on most devices
[openwrt/svn-archive/archive.git] / target / linux / ar7-2.6 / files / arch / mips / ar7 / setup.c
index fb3d20c18311914157985ebffd282b06cd53ca12..3b5215d7ed934d8f17c3d52a54adef96b15677a8 100644 (file)
@@ -49,15 +49,13 @@ static void ar7_machine_power_off(void);
 
 static void ar7_machine_restart(char *command)
 {
-        volatile u32 *softres_reg = (u32 *)ioremap(AR7_REGS_RESET +
+       volatile u32 *softres_reg = (u32 *)ioremap(AR7_REGS_RESET +
                                                   AR7_RESET_SOFTWARE, 1);
-       prom_printf("Reboot\n");
-        *softres_reg = 1;
+       *softres_reg = 1;
 }
 
 static void ar7_machine_halt(void)
 {
-       prom_printf("Halt\n");
        while (1);
 }
 
@@ -65,8 +63,7 @@ static void ar7_machine_power_off(void)
 {
         volatile u32 *power_reg = (u32 *)ioremap(AR7_REGS_POWER, 1);
        u32 power_state = *power_reg | (3 << 30);
-       prom_printf("Power off\n");
-        *power_reg = power_state;
+       *power_reg = power_state;
        ar7_machine_halt();
 }
 
@@ -112,7 +109,8 @@ void __init plat_mem_setup(void)
        set_io_port_base(io_base);
 
        prom_meminit();
-       ar7_init_clocks();
+#warning FIXME: clock initialisation
+       //ar7_init_clocks();
 
        ioport_resource.start = 0;
        ioport_resource.end   = ~0;