]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
delta board: fix DA9030 reset procedure.
authorMarkus Klotzbuecher <mk@denx.de>
Mon, 27 Mar 2006 14:01:03 +0000 (16:01 +0200)
committerMarkus Klotzbücher <mk@pollux.denx.de>
Mon, 27 Mar 2006 14:01:03 +0000 (16:01 +0200)
board/delta/delta.c
include/configs/delta.h

index 6ef7e2fc26ffbd86b3edc03d75d370d509a1423a..96928a53c3b53ecff659f6d16df46c609a63fa5f 100644 (file)
@@ -89,10 +89,17 @@ static void init_DA9030()
        GPIO33 = 0x801;         /* SDA = Alt. Fkt. 1 */
 
        /* rising Edge on EXTON */
-       GPIO17 = 0x8800;
+       GPIO17 = 0xc800;        /* enable pullup */
+       GPDR0 |= (1<<17);       /* GPIO17 is output */
+       GSDR0 = (1<<17);
+       GPCR0 = (1<<17);        /* drive GPIO17 low */
        udelay(5);
-       GPIO17 = 0xc800;
-       udelay(100000);         /* wait for DA9030 */
+       GPSR0 = (1<<17);        /* drive GPIO17 high */
+#if CFG_DA9030_EXTON_DELAY
+       udelay((unsigned long) CFG_DA9030_EXTON_DELAY); /* wait for DA9030 */
+#endif
+       GPCR0 = (1<<17);        /* drive GPIO17 low */
+       GPIO17 = 0x8800;        /* disable pullup */
 
        /* reset the watchdog and go active (0xec) */
        val = (SYS_CONTROL_A_HWRES_ENABLE |
index 776ee15d1a7886698c10b7032d73c15576df4686..6329c256b1858fa807878b4ea67aa85b14ed61a6 100644 (file)
@@ -62,6 +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 CONFIG_HW_WATCHDOG  1       /\* Required for hitting the DA9030 WD *\/ */
 
 /*
 
 #define CFG_HZ                 3250000         /* incrementer freq: 3.25 MHz */
 
-/* Monahans Core Frequency = 
- * 
- */
+/* Monahans Core Frequency */
 #define CFG_MONAHANS_RUN_MODE_OSC_RATIO                16 /* valid values: 8, 16, 24, 31 */
 #define CFG_MONAHANS_TURBO_RUN_MODE_RATIO      1  /* valid values: 1, 2 */