mx6: Read silicon revision from register
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 20 Mar 2012 04:21:45 +0000 (04:21 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 27 Mar 2012 07:41:16 +0000 (09:41 +0200)
commita7683867463481bfea84af4d60af832ddfb3da7f
tree149d710f8b97b959edec9f8d7ecedac4389b3992
parent494931a67465a95b66da346ec7bd002fdf40adee
mx6: Read silicon revision from register

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 <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Acked-by: Jason Liu <r64343@freescale.com>
arch/arm/cpu/armv7/imx-common/cpu.c
arch/arm/cpu/armv7/mx6/soc.c
arch/arm/include/asm/arch-mx6/imx-regs.h