ARM: imx: add a common function to initialize revision from anatop
authorShawn Guo <shawn.guo@linaro.org>
Tue, 13 Aug 2013 06:59:43 +0000 (14:59 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 21 Oct 2013 01:13:12 +0000 (09:13 +0800)
commitf1c6f314727c7595e249c7da3933ba2bc6219e58
tree8e2550fbc365162f7914cb4410118207118005c7
parent3f75978b3742157853618c5c6dd4a5f49aa950b1
ARM: imx: add a common function to initialize revision from anatop

The patch creates a common function imx_init_revision_from_anatop() by
merging imx6q_init_revision() and imx_anatop_get_digprog(), so that any
SoC that encodes revision info in anatop can use it to initialize
revision.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/anatop.c
arch/arm/mach-imx/common.h
arch/arm/mach-imx/mach-imx6q.c