From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Tue, 20 Mar 2012 15:34:54 +0100 Subject: [U-Boot] [PATCH v6] mx6: Read silicon revision from register In-Reply-To: <1332253305-28632-1-git-send-email-fabio.estevam@freescale.com> References: <1332253305-28632-1-git-send-email-fabio.estevam@freescale.com> Message-ID: <4F68958E.3080000@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 On 20/03/2012 15:21, Fabio Estevam wrote: > Instead of hardcoding the mx6 silicon revision, read it in run-time. > > Also, besides the silicon version 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 since v5: > - Avoid duplication of code. Also tested on a mx51evk board. > Changes since v4: > - Distinguish the the CPU print depending on the SoC type (MX5 or MX6) > Changes since v3: > - Provide a complete struct for anatop registers > Changes since v2: > - Read both chip variant and chip silicon version from anatop > - Create a struct for accessing the anatop registers > Changes since v1: > - Fix typo on Subject > arch/arm/cpu/armv7/imx-common/cpu.c | 24 +++++- > arch/arm/cpu/armv7/mx6/soc.c | 8 ++- > arch/arm/include/asm/arch-mx6/imx-regs.h | 142 ++++++++++++++++++++++++++++++ > 3 files changed, 171 insertions(+), 3 deletions(-) > Acked-by: Stefano Babic Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================