projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the infrastructure to detect RouterBOOT and use USB
[openwrt-10.03/.git]
/
target
/
linux
/
adm5120-2.6
/
files
/
arch
/
mips
/
adm5120
/
adm5120_info.c
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 e3a3c805a8bf9fe6cd7adb3b2e6db666a549d470..9e39730a4fe56747ef5c9a654eb897ba3ae88ccb 100644
(file)
--- 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_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;
}
return 1;
}
+static int __init detect_routerboot(void)
+{
+ /* FIXME: not yet implemented */
+ return 0;
+}
+
static int __init detect_bootloader(void)
{
if (detect_cfe())
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_myloader())
return BOOT_LOADER_MYLOADER;
+ if (detect_routerboot())
+ return BOOT_LOADER_ROUTERBOOT;
+
return BOOT_LOADER_UNKNOWN;
}
return BOOT_LOADER_UNKNOWN;
}