diff options
author | Wayne Zou <b36644@freescale.com> | 2011-08-23 17:54:34 +0800 |
---|---|---|
committer | Xinyu Chen <xinyu.chen@freescale.com> | 2011-09-06 15:09:10 +0800 |
commit | 0f26b95dc3b875ab653b6cf88d1b3145d3c78736 (patch) | |
tree | bbbe4564f188eec10aff4b4560a68880851a2d86 | |
parent | 96718977d4bec5da6ae49684860aef93d54b5ed8 (diff) | |
download | u-boot-imx-0f26b95dc3b875ab653b6cf88d1b3145d3c78736.zip u-boot-imx-0f26b95dc3b875ab653b6cf88d1b3145d3c78736.tar.gz u-boot-imx-0f26b95dc3b875ab653b6cf88d1b3145d3c78736.tar.bz2 |
ENGR00155240 mx53_smd: Fix a bug that hangs on printf() in board_init
remove printf() because serial interface is not ready in board_init()
Signed-off-by: Wayne Zou <b36644@freescale.com>
-rw-r--r-- | board/freescale/mx53_smd/mx53_smd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/board/freescale/mx53_smd/mx53_smd.c b/board/freescale/mx53_smd/mx53_smd.c index b9bd250..eda4eec 100644 --- a/board/freescale/mx53_smd/mx53_smd.c +++ b/board/freescale/mx53_smd/mx53_smd.c @@ -414,12 +414,8 @@ void setup_pmic_voltages(void) /* increase VDDGP as 1.25V for 1GHZ */ value = 0x5e; do { - if (0 != i2c_write(0x48, 0x2e, 1, &value, 1)) { - printf("da9052_i2c_is_connected - i2c write failed.....\n"); - } else { - printf("da9052_i2c_is_connected - i2c write success....\n"); + if (0 == i2c_write(0x48, 0x2e, 1, &value, 1)) ret = 0; - } } while (ret != 0 && retries--); i2c_read(0x48, 60, 1, &value, 1); value |= 0x1; |