4 * ADM5120 specific setup
6 * Copyright (C) 2007 OpenWrt.org
7 * Copyright (C) 2007 Gabor Juhos <juhosg at openwrt.org>
9 * This code was based on the ADM5120 specific port of the Linux 2.6.10 kernel
10 * done by Jeroen Vreeken
11 * Copyright (C) 2005 Jeroen Vreeken (pe1rxq@amsat.org)
13 * Jeroen's code was based on the Linux 2.4.xx source codes found in various
14 * tarballs released by Edimax for it's ADM5120 based devices
15 * Copyright (C) ADMtek Incorporated
17 * This program is free software; you can redistribute it and/or modify it
18 * under the terms of the GNU General Public License version 2 as published
19 * by the Free Software Foundation.
23 #include <linux/init.h>
24 #include <linux/kernel.h>
27 #include <asm/reboot.h>
30 #include <adm5120_info.h>
31 #include <adm5120_defs.h>
32 #include <adm5120_switch.h>
33 #include <adm5120_board.h>
35 static char *prom_names[ADM5120_PROM_LAST+1] __initdata = {
36 [ADM5120_PROM_GENERIC] = "Generic",
37 [ADM5120_PROM_CFE] = "CFE",
38 [ADM5120_PROM_UBOOT] = "U-Boot",
39 [ADM5120_PROM_MYLOADER] = "MyLoader",
40 [ADM5120_PROM_ROUTERBOOT] = "RouterBOOT",
41 [ADM5120_PROM_BOOTBASE] = "Bootbase"
44 static void __init adm5120_report(void)
46 printk(KERN_INFO "SoC : ADM%04X%s revision %d, running "
49 adm5120_package_bga() ? "" : "P",
50 adm5120_revision, (adm5120_speed / 1000000));
51 printk(KERN_INFO "Bootdev : %s flash\n",
52 adm5120_nand_boot ? "NAND":"NOR");
53 printk(KERN_INFO "Prom : %s\n", prom_names[adm5120_prom_type]);
56 void __init plat_mem_setup(void)
62 _machine_restart = adm5120_restart;
63 _machine_halt = adm5120_halt;
64 pm_power_off = adm5120_halt;
66 set_io_port_base(KSEG1);