提交 02226a20 编写于 作者: R Richard Zhao 提交者: Sascha Hauer

arm: mx5: mx51/53 have different mxc_cpu_type definition

Signed-off-by: NRichard Zhao <richard.zhao@freescale.com>
Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
上级 dca3abf8
...@@ -126,7 +126,7 @@ extern unsigned int __mxc_cpu_type; ...@@ -126,7 +126,7 @@ extern unsigned int __mxc_cpu_type;
# define cpu_is_mx35() (0) # define cpu_is_mx35() (0)
#endif #endif
#ifdef CONFIG_ARCH_MX5 #ifdef CONFIG_ARCH_MX51
# ifdef mxc_cpu_type # ifdef mxc_cpu_type
# undef mxc_cpu_type # undef mxc_cpu_type
# define mxc_cpu_type __mxc_cpu_type # define mxc_cpu_type __mxc_cpu_type
...@@ -134,11 +134,22 @@ extern unsigned int __mxc_cpu_type; ...@@ -134,11 +134,22 @@ extern unsigned int __mxc_cpu_type;
# define mxc_cpu_type MXC_CPU_MX51 # define mxc_cpu_type MXC_CPU_MX51
# endif # endif
# define cpu_is_mx51() (mxc_cpu_type == MXC_CPU_MX51) # define cpu_is_mx51() (mxc_cpu_type == MXC_CPU_MX51)
# define cpu_is_mx53() (mxc_cpu_type == MXC_CPU_MX53)
#else #else
# define cpu_is_mx51() (0) # define cpu_is_mx51() (0)
#endif #endif
#ifdef CONFIG_ARCH_MX53
# ifdef mxc_cpu_type
# undef mxc_cpu_type
# define mxc_cpu_type __mxc_cpu_type
# else
# define mxc_cpu_type MXC_CPU_MX53
# endif
# define cpu_is_mx53() (mxc_cpu_type == MXC_CPU_MX53)
#else
# define cpu_is_mx53() (0)
#endif
#ifdef CONFIG_ARCH_MXC91231 #ifdef CONFIG_ARCH_MXC91231
# ifdef mxc_cpu_type # ifdef mxc_cpu_type
# undef mxc_cpu_type # undef mxc_cpu_type
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册