summaryrefslogtreecommitdiff
path: root/target/linux/ar7-2.6/files/arch/mips/ar7/prom.c
diff options
context:
space:
mode:
authorEugene Konev <ejka@imfi.kspu.ru>2007-03-25 05:42:16 +0000
committerEugene Konev <ejka@imfi.kspu.ru>2007-03-25 05:42:16 +0000
commitd81c7f76b91ad14244f1e036f29c806d85db5809 (patch)
tree6615342c2c9af5a280d19ee6482b379de367b8ef /target/linux/ar7-2.6/files/arch/mips/ar7/prom.c
parent8c2cf394a32d42ff64605fdfb3168ce745f94b44 (diff)
downloadmtk-20170518-d81c7f76b91ad14244f1e036f29c806d85db5809.zip
mtk-20170518-d81c7f76b91ad14244f1e036f29c806d85db5809.tar.gz
mtk-20170518-d81c7f76b91ad14244f1e036f29c806d85db5809.tar.bz2
ar7: clocks setup (prerequisite for dsl/usb) and misc cleanups.
SVN-Revision: 6693
Diffstat (limited to 'target/linux/ar7-2.6/files/arch/mips/ar7/prom.c')
-rw-r--r--target/linux/ar7-2.6/files/arch/mips/ar7/prom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ar7-2.6/files/arch/mips/ar7/prom.c b/target/linux/ar7-2.6/files/arch/mips/ar7/prom.c
index 7176be3..e613164 100644
--- a/target/linux/ar7-2.6/files/arch/mips/ar7/prom.c
+++ b/target/linux/ar7-2.6/files/arch/mips/ar7/prom.c
@@ -47,7 +47,7 @@ struct psp_chip_map {
/* I hate this. No. *I* *HATE* *THIS* */
static __initdata struct psp_chip_map psp_chip_map[] = {
{
- .chip = 0x5,
+ .chip = AR7_CHIP_7100,
.names = {
"dummy", "cpufrequency", "memsize",
"flashsize", "modetty0", "modetty1", "prompt",
@@ -65,7 +65,7 @@ static __initdata struct psp_chip_map psp_chip_map[] = {
},
},
{
- .chip = 0x18,
+ .chip = AR7_CHIP_7200,
.names = {
"dummy", "cpufrequency", "memsize",
"flashsize", "modetty0", "modetty1", "prompt",
@@ -83,7 +83,7 @@ static __initdata struct psp_chip_map psp_chip_map[] = {
},
},
{
- .chip = 0x2b,
+ .chip = AR7_CHIP_7300,
.names = {
"dummy", "cpufrequency", "memsize",
"flashsize", "modetty0", "modetty1", "prompt",
@@ -186,7 +186,7 @@ static int __init parse_psp_env(void *start)
char *src, *dest, *name, *value;
struct psp_env_var *vars = start;
- chip = get_chip_id();
+ chip = ar7_chip_id();
for (map = psp_chip_map; map->chip; map++)
if (map->chip == chip)
break;