[U-Boot] [PATCH V2 2/5] imx: mx27 implement get_cpu_rev

Stefano Babic sbabic at denx.de
Sun Aug 23 17:23:38 CEST 2015


On 13/08/2015 04:55, Peng Fan wrote:
> Implement get_cpu_rev to support runtime check using is_cpu_type.
> 
> Signed-off-by: Peng Fan <Peng.Fan at freescale.com>
> Cc: Stefano Babic <sbabic at denx.de>
> Reviewed-by: Stefano Babic <sbabic at denx.de>
> ---
> 
> Changes v2:
>  New patch.
> 
>  arch/arm/cpu/arm926ejs/mx27/generic.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm/cpu/arm926ejs/mx27/generic.c b/arch/arm/cpu/arm926ejs/mx27/generic.c
> index 5ee9f07..b713c84 100644
> --- a/arch/arm/cpu/arm926ejs/mx27/generic.c
> +++ b/arch/arm/cpu/arm926ejs/mx27/generic.c
> @@ -12,6 +12,7 @@
>  #include <asm/arch/imx-regs.h>
>  #include <asm/arch/clock.h>
>  #include <asm/arch/gpio.h>
> +#include <asm/imx-common/sys_proto.h>
>  #ifdef CONFIG_MXC_MMC
>  #include <asm/arch/mxcmmc.h>
>  #endif
> @@ -159,6 +160,11 @@ unsigned int mxc_get_clock(enum mxc_clock clk)
>  }
>  
>  
> +u32 get_cpu_rev(void)
> +{
> +	return MXC_CPU_MX27 << 12;
> +}
> +
>  #if defined(CONFIG_DISPLAY_CPUINFO)
>  int print_cpuinfo (void)
>  {
> 
Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list