[U-Boot-Users] [Patch 7/9] U-boot-V2:ARM:OMAP: Introduce OMAP classes
Menon, Nishanth
x0nishan at ti.com
Wed Jun 18 14:35:45 CEST 2008
Introduce cpu_is_xxxx macros similar to the one in 2.6.26 rc5 kernel, this allows
for compile time optimization of CPU specific code in common drivers
Signed-off-by: Nishanth Menon <x0nishan at ti.com>
---
include/asm-arm/arch-omap/silicon.h | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
Index: u-boot-v2.git/include/asm-arm/arch-omap/silicon.h
===================================================================
--- u-boot-v2.git.orig/include/asm-arm/arch-omap/silicon.h 2008-06-17 16:52:26.000000000 -0500
+++ u-boot-v2.git/include/asm-arm/arch-omap/silicon.h 2008-06-17 17:01:06.000000000 -0500
@@ -24,6 +24,34 @@
/* Each platform silicon header comes here */
#ifdef CONFIG_ARCH_OMAP3
#include <asm/arch/omap3-silicon.h>
+#define cpu_is_omap34xx() 1
+#else
+#define cpu_is_omap34xx() 0
+#endif
+
+/* The following architectures are TBD */
+#ifdef CONFIG_ARCH_OMAP2430
+#define cpu_is_omap2430() 1
+#else
+#define cpu_is_omap2430() 0
+#endif
+
+#ifdef CONFIG_ARCH_OMAP2420
+#define cpu_is_omap2420() 1
+#else
+#define cpu_is_omap2420() 0
+#endif
+
+#ifdef CONFIG_ARCH_OMAP16XX
+#define cpu_is_omap16xx() 1
+#else
+#define cpu_is_omap16xx() 0
+#endif
+
+#ifdef CONFIG_ARCH_OMAP15XX
+#define cpu_is_omap15xx() 1
+#else
+#define cpu_is_omap15xx() 0
#endif
/* If Architecture specific init functions are present */
More information about the U-Boot
mailing list