From 89f2dfa4c349ae3b040779ac0ab1c9baa1ef025d Mon Sep 17 00:00:00 2001 From: Markus Klotzbuecher Date: Wed, 29 Mar 2006 17:49:27 +0200 Subject: delta board: minor update to DA9030 code. --- board/delta/delta.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'board/delta/delta.c') diff --git a/board/delta/delta.c b/board/delta/delta.c index 96928a53c3..78d1f7f539 100644 --- a/board/delta/delta.c +++ b/board/delta/delta.c @@ -106,8 +106,10 @@ static void init_DA9030() (0x6<<4) | SYS_CONTROL_A_WDOG_ACTION | SYS_CONTROL_A_WATCHDOG); - - i2c_reg_write(addr, SYS_CONTROL_A, val); + if(i2c_write(addr, SYS_CONTROL_A, 1, &val, 1)) { + printf("Error accessing DA9030 via i2c.\n"); + return; + } i2c_reg_write(addr, REG_CONTROL_1_97, 0xfd); /* disable LDO1, enable LDO6 */ i2c_reg_write(addr, LDO2_3, 0xd1); /* LDO2 =1,9V, LDO3=3,1V */ -- cgit