imx6: ensure AHB clock is 132MHz in low freq boot mode
authorAnson Huang <b20788@freescale.com>
Thu, 23 Jan 2014 06:00:18 +0000 (14:00 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 11 Feb 2014 10:17:10 +0000 (11:17 +0100)
commit5c92edc21c3e12873cd3de5ed73d85d48b8828ac
tree32a9aa8589ba5c7af77b5f48f79536b0aeb48d78
parent6fc049bef6900a9eb258d8cf77e540fa06a2efae
imx6: ensure AHB clock is 132MHz in low freq boot mode

For low freq boot mode(ARM boot up with 396MHz), ROM
will not set AHB clock to 132MHz, and the reset value of
AHB divider is incorrect which will lead to wrong AHB
rate, need to correct it. To enable low freq boot mode,
need to set BOOT_CFG2[2] to high, tested on i.MX6Q/DL
SabreSD board and i.MX6SL EVK board.

Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Anson Huang <b20788@freescale.com>
arch/arm/cpu/armv7/mx6/soc.c