diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2009-11-17 22:44:52 -0600 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2010-01-05 13:49:09 -0600 |
commit | effe4973f2f349e6e87d455ae718aabaf919a75d (patch) | |
tree | cf3c0ba30f22652276c20687a50008782a1afaf1 /include | |
parent | f5ecc6e027150289c2a46db7cec197b2b6da893c (diff) | |
download | u-boot-imx-effe4973f2f349e6e87d455ae718aabaf919a75d.zip u-boot-imx-effe4973f2f349e6e87d455ae718aabaf919a75d.tar.gz u-boot-imx-effe4973f2f349e6e87d455ae718aabaf919a75d.tar.bz2 |
ppc: Added macro to test for specific SVR revision
Various SoC errata are specific to a given revision of silicon. This
patch gives us a simple macro to use when doing such tests.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-ppc/processor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-ppc/processor.h b/include/asm-ppc/processor.h index f61778f..c6da411 100644 --- a/include/asm-ppc/processor.h +++ b/include/asm-ppc/processor.h @@ -992,6 +992,9 @@ #endif #endif +#define IS_SVR_REV(svr, maj, min) \ + ((SVR_MAJ(svr) == maj) && (SVR_MIN(svr) == min)) + /* * SVR_SOC_VER() Version Values */ |