From: Kumar Gala Date: Wed, 2 Dec 2009 19:02:48 -0600 Subject: [U-Boot] [PATCH v2] ppc: Added macro to test for specific SVR revision Message-ID: <1259802168-13088-1-git-send-email-galak@kernel.crashing.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- * Removed extra whitespace per Wolfgang feedback * Fixed up commit message 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 */ -- 1.6.0.6