diff options
author | Andy Fleming <afleming@freescale.com> | 2008-02-06 01:19:40 -0600 |
---|---|---|
committer | Andrew Fleming-AFLEMING <afleming@freescale.com> | 2008-03-26 11:43:04 -0500 |
commit | 1ced121600b2060ab2ff9f0fddd9421fd70a0dc6 (patch) | |
tree | 9b2f8defd6879f399795a41f9caef39cb3fa76ba /cpu/mpc86xx | |
parent | b83eef440cf3cef816172ccbb5897ccd8e403cf3 (diff) | |
download | u-boot-imx-1ced121600b2060ab2ff9f0fddd9421fd70a0dc6.zip u-boot-imx-1ced121600b2060ab2ff9f0fddd9421fd70a0dc6.tar.gz u-boot-imx-1ced121600b2060ab2ff9f0fddd9421fd70a0dc6.tar.bz2 |
Update SVR numbers to expand support
FSL has taken to using SVR[16:23] as an SOC sub-version field. This
is used to distinguish certain variants within an SOC family. To
account for this, we add the SVR_SOC_VER() macro, and update the SVR_*
constants to reflect the larger value. We also add SVR numbers for all
of the current variants. Finally, to make things neater, rather than
use an enormous switch statement to print out the CPU type, we create
and array of SVR/name pairs (using a macro), and print out the CPU name
that matches the SVR SOC version.
Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'cpu/mpc86xx')
-rw-r--r-- | cpu/mpc86xx/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/mpc86xx/cpu.c b/cpu/mpc86xx/cpu.c index bf4e651..3c74764 100644 --- a/cpu/mpc86xx/cpu.c +++ b/cpu/mpc86xx/cpu.c @@ -69,7 +69,7 @@ checkcpu(void) printf(", Version: %d.%d, (0x%08x)\n", major, minor, pvr); svr = get_svr(); - ver = SVR_VER(svr); + ver = SVR_SOC_VER(svr); major = SVR_MAJ(svr); minor = SVR_MIN(svr); |