aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120-2.6/files/arch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-04-02 21:44:09 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-04-02 21:44:09 +0000
commit556d8b4a89fc5bf7aae41570f2a426c5f9bda1ad (patch)
tree03ad96c30db1d9f85143e73bf5f66a755b9bcbd2 /target/linux/adm5120-2.6/files/arch
parent0f245643a36d9be72a328ab1239cbe302fb826dc (diff)
downloadupstream-556d8b4a89fc5bf7aae41570f2a426c5f9bda1ad.tar.gz
upstream-556d8b4a89fc5bf7aae41570f2a426c5f9bda1ad.tar.bz2
upstream-556d8b4a89fc5bf7aae41570f2a426c5f9bda1ad.zip
Add the infrastructure to detect RouterBOOT and use USB
SVN-Revision: 6844
Diffstat (limited to 'target/linux/adm5120-2.6/files/arch')
-rw-r--r--target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c b/target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c
index e3a3c805a8..9e39730a4f 100644
--- a/target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c
+++ b/target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c
@@ -37,7 +37,8 @@ static char *boot_loader_names[BOOT_LOADER_LAST+1] = {
[BOOT_LOADER_UNKNOWN] = "Unknown",
[BOOT_LOADER_CFE] = "CFE",
[BOOT_LOADER_UBOOT] = "U-Boot",
- [BOOT_LOADER_MYLOADER] = "MyLoader"
+ [BOOT_LOADER_MYLOADER] = "MyLoader",
+ [BOOT_LOADER_ROUTERBOOT]= "RouterBOOT"
};
/*
@@ -133,6 +134,12 @@ static int __init detect_myloader(void)
return 1;
}
+static int __init detect_routerboot(void)
+{
+ /* FIXME: not yet implemented */
+ return 0;
+}
+
static int __init detect_bootloader(void)
{
if (detect_cfe())
@@ -144,6 +151,9 @@ static int __init detect_bootloader(void)
if (detect_myloader())
return BOOT_LOADER_MYLOADER;
+ if (detect_routerboot())
+ return BOOT_LOADER_ROUTERBOOT;
+
return BOOT_LOADER_UNKNOWN;
}