[U-Boot] [PATCH 4/4] mxs: generalize code for print_cpuinfo()

Marek Vasut marex at denx.de
Sat Jun 23 22:08:52 CEST 2012


Dear Otavio Salvador,

> The information now is gathered from HW_DIGCTL_CHIPID register and
> includes the revision of the chip on the output.
> 
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
> Cc: Marek Vasut <marex at denx.de>
> Cc: Stefano Babic <sbabic at denx.de>
> Cc: Fabio Estevam <fabio.estevam at freescale.com>
> ---
>  arch/arm/cpu/arm926ejs/mx28/mx28.c |   58
> ++++++++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 2
> deletions(-)
> 
> diff --git a/arch/arm/cpu/arm926ejs/mx28/mx28.c
> b/arch/arm/cpu/arm926ejs/mx28/mx28.c index a82ff25..15be605 100644
> --- a/arch/arm/cpu/arm926ejs/mx28/mx28.c
> +++ b/arch/arm/cpu/arm926ejs/mx28/mx28.c
> @@ -38,6 +38,11 @@
> 
>  DECLARE_GLOBAL_DATA_PTR;
> 
> +/* Product code identification */
> +#define CHIPID_MASK	(0xffff << 16)
> +#define CHIPID_MX23	(0x3780 << 16)
> +#define CHIPID_MX28	(0x2800 << 16)

Don't we have arch/arm/include/asm-mx28/regs-digctl.h ?

[...]

Rest seems ok

Best regards,
Marek Vasut


More information about the U-Boot mailing list