ppc: Added macro to test for specific SVR revision
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.
Signed-off-by Kumar Gala <[email protected]>
--- include/asm-ppc/processor.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
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)) + +/* * SVR_SOC_VER() Version Values */
Signature · 1 line
1.6.0.6
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
Signed-off-by Kumar Gala <[email protected]>--- include/asm-ppc/processor.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)include/asm-ppc/processor.h +0
-0
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]>