Commit ae2ecf85 authored by Dirk Behme's avatar Dirk Behme Committed by Tony Lindgren

[PATCH] ARM: OMAP: Clean up cpu.h, part 2

Remove old optimizations for 1610; These are no longer
needed as 1610, 5912 and 1710 are consdered a single
group. Also adds a placeholder for cpu_is_omap2420().
Signed-off-by: default avatarDirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 77104f0d
...@@ -113,72 +113,69 @@ IS_OMAP_CLASS(24xx, 0x24) ...@@ -113,72 +113,69 @@ IS_OMAP_CLASS(24xx, 0x24)
* cpu_is_omap16xx(): True for 1610, 5912 and 1710 * cpu_is_omap16xx(): True for 1610, 5912 and 1710
*/ */
#if defined(MULTI_OMAP1) #if defined(MULTI_OMAP1)
# define cpu_is_omap7xx() is_omap7xx() # if defined(CONFIG_ARCH_OMAP730)
# define cpu_is_omap15xx() is_omap15xx() # undef cpu_is_omap7xx
# if !(defined(CONFIG_ARCH_OMAP1510) || defined(CONFIG_ARCH_OMAP730)) # define cpu_is_omap7xx() is_omap7xx()
# define cpu_is_omap16xx() 1 # endif
# else # if defined(CONFIG_ARCH_OMAP1510)
# define cpu_is_omap16xx() is_omap16xx() # undef cpu_is_omap15xx
# define cpu_is_omap15xx() is_omap15xx()
# endif
# if defined(CONFIG_ARCH_OMAP16XX)
# undef cpu_is_omap16xx
# define cpu_is_omap16xx() is_omap16xx()
# endif
# endif # endif
#else #else
# if defined(CONFIG_ARCH_OMAP730) # if defined(CONFIG_ARCH_OMAP730)
# undef cpu_is_omap7xx
# define cpu_is_omap7xx() 1 # define cpu_is_omap7xx() 1
# else
# define cpu_is_omap7xx() 0
# endif # endif
# if defined(CONFIG_ARCH_OMAP1510) # if defined(CONFIG_ARCH_OMAP1510)
# undef cpu_is_omap15xx
# define cpu_is_omap15xx() 1 # define cpu_is_omap15xx() 1
# else
# define cpu_is_omap15xx() 0
# endif # endif
# if defined(CONFIG_ARCH_OMAP16XX) # if defined(CONFIG_ARCH_OMAP16XX)
# undef cpu_is_omap16xx()
# define cpu_is_omap16xx() 1 # define cpu_is_omap16xx() 1
# else # endif
# define cpu_is_omap16xx() 0 # if defined(CONFIG_ARCH_OMAP24XX)
# undef cpu_is_omap24xx
# define cpu_is_omap24xx() 1
# endif # endif
#endif #endif
#if defined(MULTI_OMAP1) #if defined(MULTI_OMAP1)
# define cpu_is_omap730() is_omap730() # if defined(CONFIG_ARCH_OMAP730)
# define cpu_is_omap1510() is_omap1510() # undef cpu_is_omap730
# define cpu_is_omap1610() is_omap1610() # define cpu_is_omap730() is_omap730()
# define cpu_is_omap5912() is_omap5912() # endif
# define cpu_is_omap1710() is_omap1710() # if defined(CONFIG_ARCH_OMAP1510)
# undef cpu_is_omap1510
# define cpu_is_omap1510() is_omap1510()
# endif
#else #else
# if defined(CONFIG_ARCH_OMAP730) # if defined(CONFIG_ARCH_OMAP730)
# undef cpu_is_omap730
# define cpu_is_omap730() 1 # define cpu_is_omap730() 1
# else
# define cpu_is_omap730() 0
# endif # endif
# if defined(CONFIG_ARCH_OMAP1510) # if defined(CONFIG_ARCH_OMAP1510)
# undef cpu_is_omap1510
# define cpu_is_omap1510() 1 # define cpu_is_omap1510() 1
# else
# define cpu_is_omap1510() 0
# endif # endif
# if defined(CONFIG_ARCH_OMAP16XX) #endif
# define cpu_is_omap1610() 1
# else /*
# define cpu_is_omap1610() 0 * Whether we have MULTI_OMAP1 or not, we still need to distinguish
# endif * between 1611B/5912 and 1710.
# if defined(CONFIG_ARCH_OMAP16XX) */
# define cpu_is_omap5912() 1 #if defined(CONFIG_ARCH_OMAP16XX)
# else # undef cpu_is_omap1610
# define cpu_is_omap5912() 0 # undef cpu_is_omap5912
# endif # undef cpu_is_omap1710
# if defined(CONFIG_ARCH_OMAP16XX)
# define cpu_is_omap1610() is_omap1610() # define cpu_is_omap1610() is_omap1610()
# define cpu_is_omap5912() is_omap5912() # define cpu_is_omap5912() is_omap5912()
# define cpu_is_omap1710() is_omap1710() # define cpu_is_omap1710() is_omap1710()
# else
# define cpu_is_omap1610() 0
# define cpu_is_omap5912() 0
# define cpu_is_omap1710() 0
# endif
# if defined(CONFIG_ARCH_OMAP2420)
# define cpu_is_omap2420() 1
# else
# define cpu_is_omap2420() 0
# endif
#endif #endif
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment