projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5ecc6e
)
ppc: Added macro to test for specific SVR revision
author
Kumar Gala
<galak@kernel.crashing.org>
Wed, 18 Nov 2009 04:44:52 +0000
(22:44 -0600)
committer
Kumar Gala
<galak@kernel.crashing.org>
Tue, 5 Jan 2010 19:49:09 +0000
(13:49 -0600)
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 <galak@kernel.crashing.org>
include/asm-ppc/processor.h
patch
|
blob
|
history
diff --git
a/include/asm-ppc/processor.h
b/include/asm-ppc/processor.h
index f61778f864b5248da6133fe3a21592ea087b8342..c6da4116308c28c1cb198eb30b7c75b7ebdfe267 100644
(file)
--- 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
*/