enable start-stop-daemon by default, i want to use this to clean up a few init script...
[openwrt/staging/dedeckeh.git] / target / linux / brcm63xx-2.6 / files / arch / mips / bcm963xx / info.c
index d492aa3cd65d8dd359af98a9fbc01953a814fc3f..d50b601e2285a87e45ba6648b3ece8adff6aa6ea 100644 (file)
@@ -2,7 +2,7 @@
  * $Id$
  *
  * Copyright (C) 2007 OpenWrt.org
- * Copyright (C) 2007 Gabor Juhos <juhosg@freemail.hu>
+ * Copyright (C) 2007 Gabor Juhos <juhosg at openwrt.org>
  * Copyright (C) 2007 Florian Fainelli <florian@openwrt.org>
  *
  * This program is free software; you can redistribute  it and/or modify it
@@ -25,7 +25,8 @@
 static char *boot_loader_names[BOOT_LOADER_LAST+1] = {
         [BOOT_LOADER_UNKNOWN]   = "Unknown",
         [BOOT_LOADER_CFE]       = "CFE",
-        [BOOT_LOADER_REDBOOT]  = "RedBoot"
+        [BOOT_LOADER_REDBOOT]  = "RedBoot",
+       [BOOT_LOADER_CFE2]      = "CFEv2"
 };
 
 /* boot loaders specific definitions */
@@ -73,14 +74,29 @@ void __init detect_bootloader(void)
 {
        if (detect_cfe()) {
                boot_loader_type = BOOT_LOADER_CFE;
-               printk("Boot loader is : %s\n", boot_loader_names[boot_loader_type]);
        }
 
        if (detect_redboot()) {
                boot_loader_type = BOOT_LOADER_REDBOOT;
        }
-       else
-               boot_loader_type = BOOT_LOADER_UNKNOWN;
+       else {
+               /* Some devices are using CFE, but it is not detected as is */
+               boot_loader_type = BOOT_LOADER_CFE2;
+       }
+       printk("Boot loader is : %s\n", boot_loader_names[boot_loader_type]);
+}
+
+void __init detect_board(void)
+{
+       switch (boot_loader_type)
+       {
+               case BOOT_LOADER_CFE:
+                       break;
+               case BOOT_LOADER_REDBOOT:
+                       break;
+               default:
+                       break;
+       }
 }
 
 EXPORT_SYMBOL(boot_loader_type);