Signed-off-by: Alexander Kurz <akurz@xxxxxxxx> --- Documentation/boards/imx.rst | 1 + arch/arm/mach-imx/include/mach/generic.h | 13 +++++++++++++ arch/arm/mach-imx/include/mach/imx_cpu_types.h | 1 + 3 files changed, 15 insertions(+) diff --git a/Documentation/boards/imx.rst b/Documentation/boards/imx.rst index 6912ed9..60cdcf0 100644 --- a/Documentation/boards/imx.rst +++ b/Documentation/boards/imx.rst @@ -16,6 +16,7 @@ The Internal Boot Mode is supported on: * i.MX25 * i.MX35 +* i.MX50 * i.MX51 * i.MX53 * i.MX6 diff --git a/arch/arm/mach-imx/include/mach/generic.h b/arch/arm/mach-imx/include/mach/generic.h index 0a4200b..243239d 100644 --- a/arch/arm/mach-imx/include/mach/generic.h +++ b/arch/arm/mach-imx/include/mach/generic.h @@ -117,6 +117,19 @@ extern unsigned int __imx_cpu_type; # define cpu_is_mx35() (0) #endif +#ifdef CONFIG_ARCH_IMX50 +# ifdef imx_cpu_type +# undef imx_cpu_type +# define imx_cpu_type __imx_cpu_type +# else +# define imx_cpu_type IMX_CPU_IMX50 +# endif +# define cpu_is_mx50() (imx_cpu_type == IMX_CPU_IMX50) +#else +# define cpu_is_mx50() (0) +#endif + + #ifdef CONFIG_ARCH_IMX51 # ifdef imx_cpu_type # undef imx_cpu_type diff --git a/arch/arm/mach-imx/include/mach/imx_cpu_types.h b/arch/arm/mach-imx/include/mach/imx_cpu_types.h index 781ab9f..8472488 100644 --- a/arch/arm/mach-imx/include/mach/imx_cpu_types.h +++ b/arch/arm/mach-imx/include/mach/imx_cpu_types.h @@ -7,6 +7,7 @@ #define IMX_CPU_IMX27 27 #define IMX_CPU_IMX31 31 #define IMX_CPU_IMX35 35 +#define IMX_CPU_IMX50 50 #define IMX_CPU_IMX51 51 #define IMX_CPU_IMX53 53 #define IMX_CPU_IMX6 6 -- 2.1.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox