diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-04-02 21:44:09 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-04-02 21:44:09 +0000 |
commit | 0e4126fe8d40fbcfa1efc93d1d77c98c74d6c249 (patch) | |
tree | 7c681a5fafe54fc950f148d41d7fb532d25e88b2 /target/linux/adm5120-2.6/files/arch/mips | |
parent | 7a7fc463250f770d7cb92375503c3c81f39fd2f2 (diff) | |
download | upstream-0e4126fe8d40fbcfa1efc93d1d77c98c74d6c249.tar.gz upstream-0e4126fe8d40fbcfa1efc93d1d77c98c74d6c249.tar.bz2 upstream-0e4126fe8d40fbcfa1efc93d1d77c98c74d6c249.zip |
Add the infrastructure to detect RouterBOOT and use USB
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6844 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120-2.6/files/arch/mips')
-rw-r--r-- | target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c | 12 |
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; } |