diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2011-08-24 09:14:16 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-09-29 19:01:05 -0500 |
commit | a5986432679205df5f80f7699f7853a0e7e5a509 (patch) | |
tree | ea3cc736c7b9409708769bda66d9ae0c8f4a3277 /arch/powerpc/include | |
parent | 5471370b43382907eee5034880967331cd1b7aec (diff) | |
download | u-boot-imx-a5986432679205df5f80f7699f7853a0e7e5a509.zip u-boot-imx-a5986432679205df5f80f7699f7853a0e7e5a509.tar.gz u-boot-imx-a5986432679205df5f80f7699f7853a0e7e5a509.tar.bz2 |
powerpc/85xx: Cleanup how SVR_MAJ() is defined on MPC8536
The MPC8536 seems to use only 3 bits for the major revision field in the
SVR rather than the 4 bits used by all other processors. The most
significant bit is used as a mfg code on MPC8536.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/processor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h index 50af6e7..46f9989 100644 --- a/arch/powerpc/include/asm/processor.h +++ b/arch/powerpc/include/asm/processor.h @@ -1022,7 +1022,11 @@ #define SVR_FAM(svr) (((svr) >> 20) & 0xFFF) /* Family field */ #define SVR_MEM(svr) (((svr) >> 16) & 0xF) /* Member field */ +#ifdef CONFIG_MPC8536 +#define SVR_MAJ(svr) (((svr) >> 4) & 0x7) /* Major revision field*/ +#else #define SVR_MAJ(svr) (((svr) >> 4) & 0xF) /* Major revision field*/ +#endif #define SVR_MIN(svr) (((svr) >> 0) & 0xF) /* Minor revision field*/ /* Some parts define SVR[0:23] as the SOC version */ |