summaryrefslogtreecommitdiffstats
path: root/board/BuR
diff options
context:
space:
mode:
authorHannes Petermaier <oe5hpm@oevsv.at>2014-03-08 19:09:32 +0100
committerTom Rini <trini@ti.com>2014-03-12 16:22:16 -0400
commitaadf3192f83a55dbbdb0d395ee5af88b6560edcb (patch)
tree7cdd77bde325081d64a5a8be3f3d1b4e836eb673 /board/BuR
parentec716e33d6ce46c9b60db4cf35af81d8812b414e (diff)
downloadblackbird-obmc-uboot-aadf3192f83a55dbbdb0d395ee5af88b6560edcb.tar.gz
blackbird-obmc-uboot-aadf3192f83a55dbbdb0d395ee5af88b6560edcb.zip
board/BuR/kwb: fix usage of 'i2c_set_bus_speed'
- fix: return-value of 'i2c_set_bus_speed' was interpreted wrong Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>
Diffstat (limited to 'board/BuR')
-rw-r--r--board/BuR/kwb/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/BuR/kwb/board.c b/board/BuR/kwb/board.c
index 8aa16bcf80..804765a8de 100644
--- a/board/BuR/kwb/board.c
+++ b/board/BuR/kwb/board.c
@@ -120,7 +120,7 @@ void am33xx_spl_board_init(void)
/* power-ON 3V3 via Resetcontroller */
oldspeed = i2c_get_bus_speed();
- if (0 != i2c_set_bus_speed(CONFIG_SYS_OMAP24_I2C_SPEED_PSOC)) {
+ if (i2c_set_bus_speed(CONFIG_SYS_OMAP24_I2C_SPEED_PSOC) >= 0) {
buf = RSTCTRL_FORCE_PWR_NEN;
i2c_write(RSTCTRL_ADDR, RSTCTRL_CTRLREG, 1,
(uint8_t *)&buf, sizeof(buf));
@@ -221,7 +221,7 @@ int board_late_init(void)
TPS65217_WLEDCTRL1, 0x09, 0xFF);
/* write bootinfo into scratchregister of resetcontroller */
oldspeed = i2c_get_bus_speed();
- if (0 != i2c_set_bus_speed(CONFIG_SYS_OMAP24_I2C_SPEED_PSOC)) {
+ if (i2c_set_bus_speed(CONFIG_SYS_OMAP24_I2C_SPEED_PSOC) >= 0) {
i2c_write(RSTCTRL_ADDR, RSTCTRL_SCRATCHREG, 1,
(uint8_t *)&buf, sizeof(buf));
i2c_set_bus_speed(oldspeed);
OpenPOWER on IntegriCloud