From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 17 Jun 2012 15:35:35 +0200 Subject: [U-Boot] [PATCH 2/3] mxs: generalize code for print_cpuinfo() In-Reply-To: References: <1339937889-15538-1-git-send-email-otavio@ossystems.com.br> <1339937889-15538-3-git-send-email-otavio@ossystems.com.br> Message-ID: <201206171535.35288.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Fabio Estevam, > On Sun, Jun 17, 2012 at 9:58 AM, Otavio Salvador > > 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