summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2014-01-18 12:48:04 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-01-20 16:36:56 +0100
commit6b07bf28cdf71ef59fe01181734519857a093cab (patch)
tree047541e0e8a058a741c8594e406c0b7c06572a34 /arch
parentd9a08d8bc5da4f06a2c96f4a4c4591c01d5b5d44 (diff)
downloadbarebox-6b07bf28cdf71ef59fe01181734519857a093cab.tar.gz
barebox-6b07bf28cdf71ef59fe01181734519857a093cab.tar.xz
ARM: mioa701: fix frequence speedup code
As barebox has become the true SPL of mioa701 board (no intermediate SPL), a bug was uncovered in the init procedure, where the CPU voltage was to be increased by commanding the I2C voltage regulator, while the I2C was shut down. Fix it by unclock-gating the power I2C bus before using it. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boards/mioa701/board.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/boards/mioa701/board.c b/arch/arm/boards/mioa701/board.c
index 6c877bc00f..6f93900fdc 100644
--- a/arch/arm/boards/mioa701/board.c
+++ b/arch/arm/boards/mioa701/board.c
@@ -265,6 +265,7 @@ static int mioa701_coredevice_init(void)
* This requires to command the Maxim 1586 to upgrade core voltage to
* 1.475 V, on the power I2C bus (device 0x14).
*/
+ CKEN |= CKEN_PWRI2C;
CCCR = CCCR_A | 0x20290;
PCFR = PCFR_GPR_EN | PCFR_FVC | PCFR_DC_EN | PCFR_PI2C_EN | PCFR_OPDE;
PCMD(0) = PCMD_LC | 0x1f;