[U-Boot] [PATCH] ppc: Added macro to test for specific SVR revision

Kumar Gala galak at kernel.crashing.org
Thu Nov 19 15:50:15 CET 2009


Various SoC errata are specific to a given revision of silicon this
gives us a simple macro to use when doing such tests.

Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
---
 include/asm-ppc/processor.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/asm-ppc/processor.h b/include/asm-ppc/processor.h
index f61778f..cda9210 100644
--- a/include/asm-ppc/processor.h
+++ b/include/asm-ppc/processor.h
@@ -992,6 +992,10 @@
 #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



More information about the U-Boot mailing list