diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2012-10-23 10:57:46 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2012-11-10 08:15:40 +0100 |
commit | 20332a066aff98f39419495821e14edd10b2a3f8 (patch) | |
tree | a50b4c4ee5150a4d3b127664ddc063fc0f8cc2b6 /arch/arm/imx-common | |
parent | 3e4d27b06d7484040355e22eec2cbce7335d6dab (diff) | |
download | u-boot-imx-20332a066aff98f39419495821e14edd10b2a3f8.zip u-boot-imx-20332a066aff98f39419495821e14edd10b2a3f8.tar.gz u-boot-imx-20332a066aff98f39419495821e14edd10b2a3f8.tar.bz2 |
mx6: soc: update get_cpu_rev and get_imx_type for mx6solo/sololite
Previously, the same value was returned for both mx6dl and mx6solo.
Check number of processors to differeniate.
Also, a freescale patch says that sololite has its cpu/rev
stored at 0x280 instead of 0x260.
I don't have a sololite to verify.
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'arch/arm/imx-common')
-rw-r--r-- | arch/arm/imx-common/cpu.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c index a10d12d..102c254 100644 --- a/arch/arm/imx-common/cpu.c +++ b/arch/arm/imx-common/cpu.c @@ -67,18 +67,20 @@ char *get_reset_cause(void) #if defined(CONFIG_DISPLAY_CPUINFO) -static const char *get_imx_type(u32 imxtype) +const char *get_imx_type(u32 imxtype) { switch (imxtype) { - case 0x63: + case MXC_CPU_MX6Q: return "6Q"; /* Quad-core version of the mx6 */ - case 0x61: - return "6DS"; /* Dual/Solo version of the mx6 */ - case 0x60: + case MXC_CPU_MX6DL: + return "6DL"; /* Dual Lite version of the mx6 */ + case MXC_CPU_MX6SOLO: + return "6SOLO"; /* Solo version of the mx6 */ + case MXC_CPU_MX6SL: return "6SL"; /* Solo-Lite version of the mx6 */ - case 0x51: + case MXC_CPU_MX51: return "51"; - case 0x53: + case MXC_CPU_MX53: return "53"; default: return "??"; |