-static int __init detect_routerboot(void)
-{
- /* FIXME: not yet implemented */
- return 0;
-}
-
-static int __init detect_bootloader(void)
-{
- if (detect_cfe())
- return BOOT_LOADER_CFE;
-
- if (detect_uboot())
- return BOOT_LOADER_UBOOT;
-
- if (detect_myloader())
- return BOOT_LOADER_MYLOADER;
-
- if (detect_routerboot())
- return BOOT_LOADER_ROUTERBOOT;
-
- return BOOT_LOADER_UNKNOWN;
-}
-
-/*
- * Board detection
- */
-static void __init detect_board_type(void)
-{
- switch(adm5120_info.boot_loader) {
- case BOOT_LOADER_CFE:
- adm5120_info.board_type = BOARD_TYPE_WP54G_WRT;
- adm5120_info.iface_num = 2;
- adm5120_info.has_usb = 0;
- printk("Board is a Compex WP54G-WRT\n");
- default:
- adm5120_info.board_type = BOARD_TYPE_UNKNOWN;
- printk("Board type is unknown\n");
- }
-}
-
-void __init adm5120_info_show(void)
-{
- printk("ADM%04X%s revision %d, running at %ldMHz\n",
- adm5120_info.product_code,
- (adm5120_info.cpu_package == CPU_PACKAGE_BGA) ? "" : "P",
- adm5120_info.revision,
- (adm5120_info.cpu_speed / 1000000)
- );
- printk("Boot loader is: %s\n", boot_loader_names[adm5120_info.boot_loader]);
- printk("Booted from : %s flash\n", adm5120_info.nand_boot ? "NAND" : "NOR");
-}
-
-void __init adm5120_info_init(void)
-{
- detect_cpu_info();
- adm5120_info.boot_loader = detect_bootloader();
- detect_board_type();
-
- adm5120_info_show();