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. Resending this for keeping the series
Signed-off-by: Nishanth Menon <[EMAIL PROTECTED]> --- 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-19 08:39:58.000000000 -0500 +++ u-boot-v2.git/include/asm-arm/arch-omap/silicon.h 2008-06-19 08:51:07.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 */ ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users