[U-Boot] [PATCH 2/3] mxs: generalize code for print_cpuinfo()
Marek Vasut
marex at denx.de
Sun Jun 17 15:35:35 CEST 2012
Dear Fabio Estevam,
> 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.
Good catch ;-)
What's the code for mx6q? They dropped this register from it it seems ;-)
Best regards,
Marek Vasut
More information about the U-Boot
mailing list