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

Marek Vasut
2012-06-23T20:08:52Z

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@ossystems.com.br>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Fabio Estevam <fabio.estevam@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