diff options
author | wdenk <wdenk> | 2003-06-20 23:10:58 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-06-20 23:10:58 +0000 |
commit | 72755c7137396fdd8230dfc498294760fa2aaeb4 (patch) | |
tree | e5726d1a8ac606f027c3d0c04e2806a00bf94d6a /cpu/74xx_7xx/cpu.c | |
parent | 0332990b8508cea232b2f2ae47283cf395c7ee62 (diff) |
Patch by Tom Guilliams, 20 Jun 2003:
added CONFIG_750FX support for IBM 750FX processors
Diffstat (limited to 'cpu/74xx_7xx/cpu.c')
-rw-r--r-- | cpu/74xx_7xx/cpu.c | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/cpu/74xx_7xx/cpu.c b/cpu/74xx_7xx/cpu.c index c265ce265a..19f8ff81ee 100644 --- a/cpu/74xx_7xx/cpu.c +++ b/cpu/74xx_7xx/cpu.c @@ -64,7 +64,7 @@ get_cpu_type(void) case 0x0008: type = CPU_750; - if (((pvr >> 8) & 0xff) == 0x01) { + if (((pvr >> 8) & 0xff) == 0x01) { type = CPU_750CX; /* old CX (80100 and 8010x?)*/ } else if (((pvr >> 8) & 0xff) == 0x22) { type = CPU_750CX; /* CX (82201,82202) and CXe (82214) */ @@ -72,14 +72,18 @@ get_cpu_type(void) type = CPU_750CX; /* CXe (83311) */ } else if (((pvr >> 12) & 0xF) == 0x3) { type = CPU_755; - } + } + break; + + case 0x7000: + type = CPU_750FX; break; case 0x800C: type = CPU_7410; break; - case 0x8000: + case 0x8000: type = CPU_7450; break; @@ -116,6 +120,10 @@ int checkcpu (void) str = "750"; break; + case CPU_750FX: + str = "750FX"; + break; + case CPU_755: str = "755"; break; @@ -124,16 +132,16 @@ int checkcpu (void) str = "MPC7400"; break; - case CPU_7410: - str = "MPC7410"; + case CPU_7410: + str = "MPC7410"; break; - case CPU_7450: - str = "MPC7450"; + case CPU_7450: + str = "MPC7450"; break; default: - printf("Unknown CPU -- PVR: 0x%08x\n", pvr); + printf("Unknown CPU -- PVR: 0x%08x\n", pvr); return -1; } @@ -146,8 +154,8 @@ PR_CLK: #endif /* these two functions are unimplemented currently [josh] */ -/* ------------------------------------------------------------------------- */ -/* L1 i-cache */ +/* -------------------------------------------------------------------- */ +/* L1 i-cache */ int checkicache(void) @@ -155,8 +163,8 @@ checkicache(void) return 0; /* XXX */ } -/* ------------------------------------------------------------------------- */ -/* L1 d-cache */ +/* -------------------------------------------------------------------- */ +/* L1 d-cache */ int checkdcache(void) @@ -164,7 +172,7 @@ checkdcache(void) return 0; /* XXX */ } -/* ------------------------------------------------------------------------- */ +/* -------------------------------------------------------------------- */ static inline void soft_restart(unsigned long addr) |