]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: imx: do not use regmap_read for ANADIG_DIGPROG
authorShawn Guo <shawn.guo@linaro.org>
Sun, 31 Mar 2013 14:39:22 +0000 (22:39 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Fri, 12 Apr 2013 11:28:13 +0000 (19:28 +0800)
commit8e42df602373ad8ddb50b4649facab76335daa7d
treeaaa63c87e3c201ca9a1ebf92cc03dabf23cc7488
parentc44ce472a37247bcd45fa30ed0b13aa5adccf23b
ARM: imx: do not use regmap_read for ANADIG_DIGPROG

Function imx_anatop_get_digprog() that reads register ANADIG_DIGPROG is
called to identify silicon version.  Users might query silicon version
earlier than regmap subsystem is ready.  For example, imx6q clock driver
query revision in mx6q_clocks_init(), where regmap is not initialized
yet.

Change imx_anatop_get_digprog() to map anatop block and read
ANADIG_DIGPROG in the native way, so that the function can work at very
early stage.

While at it, let's move imx_print_silicon_rev() back to
imx6q_timer_init() to have the message show up a little earlier.

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