From: Kumar Gala Date: Wed, 18 Nov 2009 04:44:52 +0000 (-0600) Subject: ppc: Added macro to test for specific SVR revision X-Git-Tag: v2010.03-rc1~170 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=effe4973f2f349e6e87d455ae718aabaf919a75d;p=u-boot 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 --- diff --git a/include/asm-ppc/processor.h b/include/asm-ppc/processor.h index f61778f864..c6da411630 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 */