-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)
-{
- /* FIXME: not yet implemented */
-}
-
-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();
+ clks = CODE_GET_CLKS(code);
+ adm5120_speed = ADM5120_SPEED_175;
+ if (clks & 1)
+ adm5120_speed += 25000000;
+ if (clks & 2)
+ adm5120_speed += 50000000;