projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[adm5120] fix of the board specific initialization of the GPIO pins
[openwrt.git]
/
target
/
linux
/
adm5120-2.6
/
files
/
arch
/
mips
/
adm5120
/
prom.c
diff --git
a/target/linux/adm5120-2.6/files/arch/mips/adm5120/prom.c
b/target/linux/adm5120-2.6/files/arch/mips/adm5120/prom.c
index
97ecc99
..
db8037f
100644
(file)
--- a/
target/linux/adm5120-2.6/files/arch/mips/adm5120/prom.c
+++ b/
target/linux/adm5120-2.6/files/arch/mips/adm5120/prom.c
@@
-110,7
+110,7
@@
static unsigned long __init detect_machtype_generic(void)
{
char *name;
{
char *name;
- name = generic_prom_getenv("board");
+ name = generic_prom_getenv("board
_name
");
return find_machtype_byname(name);
}
return find_machtype_byname(name);
}
@@
-228,8
+228,13
@@
static void __init prom_detect_machtype(void)
return;
}
return;
}
- adm5120_prom_type = ADM5120_PROM_GENERIC;
- mips_machtype = detect_machtype_generic();
+ if (generic_prom_present()) {
+ adm5120_prom_type = ADM5120_PROM_GENERIC;
+ mips_machtype = detect_machtype_generic();
+ return;
+ }
+
+ mips_machtype = MACH_ADM5120_GENERIC;
}
/* TODO: this is an ugly hack for RouterBOARDS */
}
/* TODO: this is an ugly hack for RouterBOARDS */
This page took
0.026092 seconds
and
4
git commands to generate.