summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Klotzbuecher <mk@denx.de>2006-03-29 17:49:27 +0200
committerMarkus Klotzbücher <mk@pollux.denx.de>2006-03-29 17:49:27 +0200
commit89f2dfa4c349ae3b040779ac0ab1c9baa1ef025d (patch)
treea560b8a197cc4c1828aa716b3e077a956d081e6f
parentc855ef6768cf9cb0bc12f4965592dcd5f353686a (diff)
delta board: minor update to DA9030 code.
-rw-r--r--board/delta/delta.c6
-rw-r--r--include/configs/delta.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/board/delta/delta.c b/board/delta/delta.c
index 96928a53c..78d1f7f53 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 */
diff --git a/include/configs/delta.h b/include/configs/delta.h
index 6329c256b..f2e0a8ce1 100644
--- a/include/configs/delta.h
+++ b/include/configs/delta.h
@@ -62,7 +62,7 @@
#define CFG_I2C_SPEED 400000 /* I2C speed */
#define CFG_I2C_SLAVE 1 /* I2C controllers address */
#define DA9030_I2C_ADDR 0x49 /* I2C address of DA9030 */
-#define CFG_DA9030_EXTON_DELAY 0 /* wait x us after DA9030 reset via EXTON */
+#define CFG_DA9030_EXTON_DELAY 100000 /* wait x us after DA9030 reset via EXTON */
/* #define CONFIG_HW_WATCHDOG 1 /\* Required for hitting the DA9030 WD *\/ */
/*