-#define ADM5120_SOFTRESET 0x12000004
-#define STATUS_IE 0x00000001
-#define ALLINTS (IE_IRQ0 | IE_IRQ5 | STATUS_IE)
-
-#define ADM5120_CODEREG 0x12000000
-#define ADM5120_CPU_CLK_MASK 0x00300000
-#define ADM5120_CPU_CLK_175 0x00000000
-#define ADM5120_CPU_CLK_200 0x00100000
-#define ADM5120_CPU_CLK_225 0x00200000
-#define ADM5120_CPU_CLK_250 0x00300000
-
-void mips_time_init(void);
-
-extern unsigned int mips_counter_frequency;
-
-void adm5120_restart(char *command)
-{
- *(u32*)KSEG1ADDR(ADM5120_SOFTRESET)=1;
-}
-
-
-void adm5120_halt(void)
-{
- printk(KERN_NOTICE "\n** You can safely turn off the power\n");
- while (1);
-}
-
-
-void adm5120_power_off(void)
-{
- adm5120_halt();
-}
-
-void __init mips_time_init(void)
-{
- u32 clock;
-
- clock = *(u32*)KSEG1ADDR(ADM5120_CODEREG);
-
- switch (clock & ADM5120_CPU_CLK_MASK) {
- case ADM5120_CPU_CLK_175:
- mips_counter_frequency = 87500000;
- printk("CPU clock: 175MHz\n");
- break;
- case ADM5120_CPU_CLK_200:
- mips_counter_frequency = 100000000;
- printk("CPU clock: 200MHz\n");
- break;
- case ADM5120_CPU_CLK_225:
- mips_counter_frequency = 112500000;
- printk("CPU clock: 225MHz\n");
- break;
- case ADM5120_CPU_CLK_250:
- mips_counter_frequency = 125000000;
- printk("CPU clock: 250MHz\n");
- break;
- }
-}
+#include <asm/mach-adm5120/adm5120_info.h>
+#include <asm/mach-adm5120/adm5120_defs.h>
+#include <asm/mach-adm5120/adm5120_switch.h>
+#include <asm/mach-adm5120/adm5120_board.h>
+
+static char *prom_names[ADM5120_PROM_LAST+1] __initdata = {
+ [ADM5120_PROM_GENERIC] = "Generic",
+ [ADM5120_PROM_CFE] = "CFE",
+ [ADM5120_PROM_UBOOT] = "U-Boot",
+ [ADM5120_PROM_MYLOADER] = "MyLoader",
+ [ADM5120_PROM_ROUTERBOOT] = "RouterBOOT",
+ [ADM5120_PROM_BOOTBASE] = "Bootbase"
+};