public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 2/5] imx: mx27 implement get_cpu_rev
Date: Sun, 23 Aug 2015 17:23:38 +0200	[thread overview]
Message-ID: <55D9E57A.8020408@denx.de> (raw)
In-Reply-To: <1439434534-18500-2-git-send-email-Peng.Fan@freescale.com>

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@freescale.com>
> Cc: Stefano Babic <sbabic@denx.de>
> Reviewed-by: Stefano Babic <sbabic@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
=====================================================================

  reply	other threads:[~2015-08-23 15:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-13  2:55 [U-Boot] [PATCH V2 1/5] imx: add cpu type for i.MX2 and i.MX3 Peng Fan
2015-08-13  2:55 ` [U-Boot] [PATCH V2 2/5] imx: mx27 implement get_cpu_rev Peng Fan
2015-08-23 15:23   ` Stefano Babic [this message]
2015-08-13  2:55 ` [U-Boot] [PATCH V2 3/5] imx: mx31 use new formula for get_cpu_rev Peng Fan
2015-08-23 15:23   ` Stefano Babic
2015-08-13  2:55 ` [U-Boot] [PATCH V2 4/5] imx: mxs: reimplement get_cpu_rev Peng Fan
2015-08-23 15:23   ` Stefano Babic
2015-08-13  2:55 ` [U-Boot] [PATCH V2 5/5] imx-common: consolidate macros and prototypes into sys_proto.h Peng Fan
2015-08-23 15:24   ` Stefano Babic
2015-08-23 15:23 ` [U-Boot] [PATCH V2 1/5] imx: add cpu type for i.MX2 and i.MX3 Stefano Babic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55D9E57A.8020408@denx.de \
    --to=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox