Skip to contentSkip to conversation

ppc: Added macro to test for specific SVR revision

PATCH Superseded Kumar Gala 2 participants 2 messages Nov 19, 2009 – Dec 2, 2009

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 ppc: Added macro to test for specific SVR revision

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

---
 include/asm-ppc/processor.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
include/asm-ppc/processor.h +4 -0
index f61778f..cda9210 100644
@@ -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
  */
Signature · 1 line
1.6.0.6
#1 lore raw

PATCH 1/1 ppc: Added macro to test for specific SVR revision

Dear Kumar Gala,

Quoted 2 lines · In message <[email protected]> you…

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

You probably want to s/silicon this/silicon. This patch/ ?

Quoted 10 lines
---
 include/asm-ppc/processor.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
include/asm-ppc/processor.h +0 -0
index f61778f..cda9210 100644

include/asm-ppc/processor.h line 998

Quoted 7 lines
include/asm-ppc/processor.h +4 -0
@@ -992,6 +992,10 @@
 #endif
 #endif
 
+#define IS_SVR_REV(svr, maj, min) \
+	((SVR_MAJ(svr) == maj) && (SVR_MIN(svr) == min))
+
+

Please remove one of the blank lines. Thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I don't know if it's what you want, but it's what you get.  :-)
                      - Larry Wall in <[email protected]>