From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Nelson Date: Wed, 14 Mar 2012 08:05:01 -0700 Subject: [U-Boot] [PATCH v3] mx6: Read silicon revision from register In-Reply-To: <4F608ACC.1070600@grandegger.com> References: <1331693804-2348-1-git-send-email-festevam@gmail.com> <4F608ACC.1070600@grandegger.com> Message-ID: <4F60B39D.1090802@boundarydevices.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 collection of analog and anadig. So, ANATOP register mostly is consist of 4 parts: >>> >>> ANADIG in CCM: for example: PLL/PFD, >>> ANAREG in power: internal analog regulator, power tree. >>> ANAUSB in usb: for usb vbus dection, charge, etc. >>> ANAMISC: misc feature, only one register now for the Chip Silicon Version >>> >>> So the siliconid is in the last register. >> >> In the mx6 reference manual version I have I cannot find all the >> fields you mentioned. >> >> Can you send me offline the anatop register layout so that I can >> complete this structure? > > I think "arch/arm/mach-mx6/regs-anadig.h" from Freescale's 2.6.38 kernel > tree does define the register layout. Do you have that file? > If not, you can grab it from here: http://opensource.freescale.com/git?p=imx/uboot-imx.git;a=blob;f=include/asm-arm/arch-mx6/regs-anadig.h;h=581064b876244c65b3a0c82bf14a2f3639864b9f;hb=imx_v2009.08_11.11.01