Re: [U-Boot] [PATCH v3] mx6: Read silicon revision from register

2012-03-14 Thread Eric Nelson
On 03/14/2012 05:10 AM, Wolfgang Grandegger wrote: Hi Fabio, On 03/14/2012 11:24 AM, Fabio Estevam wrote: On Wed, Mar 14, 2012 at 3:09 AM, Liu Hui-R64343 wrote: I'm afraid whether this is correct to add it here since some registers of anatop was included into the ccm_reg. ANATOP is a colle

Re: [U-Boot] [PATCH v3] mx6: Read silicon revision from register

2012-03-14 Thread Wolfgang Grandegger
Hi Fabio, On 03/14/2012 11:24 AM, Fabio Estevam wrote: > On Wed, Mar 14, 2012 at 3:09 AM, Liu Hui-R64343 wrote: > >> I'm afraid whether this is correct to add it here since some registers of >> anatop was included into the ccm_reg. >> >> ANATOP is a collection of analog and anadig. So, ANATOP r

Re: [U-Boot] [PATCH v3] mx6: Read silicon revision from register

2012-03-14 Thread Fabio Estevam
On Wed, Mar 14, 2012 at 3:09 AM, Liu Hui-R64343 wrote: > I'm afraid whether this is correct to add it here since some registers of > anatop was included into the ccm_reg. > > ANATOP is a collection of analog and anadig. So, ANATOP register mostly is > consist of 4 parts: > > ANADIG in CCM: for

Re: [U-Boot] [PATCH v3] mx6: Read silicon revision from register

2012-03-13 Thread Liu Hui-R64343
>-Original Message- >From: Fabio Estevam [mailto:feste...@gmail.com] >Sent: Wednesday, March 14, 2012 10:57 AM >To: u-boot@lists.denx.de >Cc: sba...@denx.de; eric.nel...@boundarydevices.com; >dirk.be...@de.bosch.com; Liu Hui-R64343; Estevam Fabio-R49496 >Subject: [PATCH v3] mx6: Read silico

[U-Boot] [PATCH v3] mx6: Read silicon revision from register

2012-03-13 Thread Fabio Estevam
Instead of hardcoding the mx6 silicon revision, read it in run-time. Also, besides the silicon version also print the mx6 variant type: quad, dual/solo or solo-lite. Tested on a mx6qsabrelite, where it shows: CPU: Freescale i.MX6Q rev1.0 at 792 MHz Signed-off-by: Fabio Estevam --- Changes