diff options
author | Stefan Roese <sr@denx.de> | 2005-10-04 15:00:30 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2005-10-04 15:00:30 +0200 |
commit | 9a8d82fd3c7822effe3226f97f9ef1f643498c89 (patch) | |
tree | 2b74c0e31c19d6c45c8161608d1c86723b59e925 /cpu | |
parent | d843a575d705637cb2d70520070a8671b58e2a76 (diff) | |
download | u-boot-imx-9a8d82fd3c7822effe3226f97f9ef1f643498c89.zip u-boot-imx-9a8d82fd3c7822effe3226f97f9ef1f643498c89.tar.gz u-boot-imx-9a8d82fd3c7822effe3226f97f9ef1f643498c89.tar.bz2 |
Fix 440GR to print correct cpu revision
Patch by Stefan Roese, 4 Oct 2005
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/ppc4xx/cpu.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/cpu/ppc4xx/cpu.c b/cpu/ppc4xx/cpu.c index a9bb89a..5ec9adb 100644 --- a/cpu/ppc4xx/cpu.c +++ b/cpu/ppc4xx/cpu.c @@ -178,22 +178,19 @@ int checkcpu (void) case PVR_440GX_RC: puts("GX Rev. C"); break; -#if defined(CONFIG_440GR) - case PVR_440EP_RA: - puts("GR Rev. A"); - break; - case PVR_440EP_RB: - puts("GR Rev. B"); - break; -#else case PVR_440EP_RA: puts("EP Rev. A"); break; - case PVR_440EP_RB: +#ifdef CONFIG_440EP + case PVR_440EP_RB: /* 440EP rev B and 440GR rev A have same PVR */ puts("EP Rev. B"); break; -#endif - +#endif /* CONFIG_440EP */ +#ifdef CONFIG_440GR + case PVR_440GR_RA: /* 440EP rev B and 440GR rev A have same PVR */ + puts("GR Rev. A"); + break; +#endif /* CONFIG_440GR */ default: printf (" UNKNOWN (PVR=%08x)", pvr); break; |