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

Fabio Estevam festevam at gmail.com
Sun Jun 17 15:25:13 CEST 2012


On Sun, Jun 17, 2012 at 9:58 AM, Otavio Salvador
<otavio at ossystems.com.br> wrote:

>  #if defined(CONFIG_DISPLAY_CPUINFO)
> +static const char *get_cpu_type(void)
> +{
> +       struct mx28_digctl_regs *digctl_regs =
> +               (struct mx28_digctl_regs *)MXS_DIGCTL_BASE;
> +
> +       switch (readl(&digctl_regs->hw_digctl_chipid) >> 16) {
> +       case 0x2800:
> +               return "28";
> +       case 0x3728:

Reading the Reference Manual I read 0x3780 instead.


More information about the U-Boot mailing list