Rename mipsIRQ.S to int-handler to match the kernel naming convention, implement...
[openwrt/openwrt.git] / target / linux / adm5120-2.6 / files / arch / mips / adm5120 / adm5120_info.c
index 9e39730a4fe56747ef5c9a654eb897ba3ae88ccb..1780a5bb8af63a764ccd0eb4ee885fab80cfeb62 100644 (file)
@@ -162,7 +162,16 @@ static int __init detect_bootloader(void)
  */
 static void __init detect_board_type(void)
 {
-       /* FIXME: not yet implemented */
+       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)