Do i2c init before serial init
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 21 Nov 2011 18:04:46 +0000 (20:04 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 27 Dec 2011 11:21:17 +0000 (13:21 +0200)
pandora needs this to power the level shifter so that
serial output can be seen.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
lib/board.c

index a5b45b8..1c79d58 100644 (file)
@@ -59,15 +59,15 @@ typedef int (init_fnc_t) (void);
 
 init_fnc_t *init_sequence[] = {
        cpu_init,               /* basic cpu dependent setup */
+#ifdef CONFIG_DRIVER_OMAP34XX_I2C
+       init_func_i2c,
+#endif
        board_init,             /* basic board dependent setup */
 #ifdef CFG_NS16550_SERIAL
        serial_init,            /* serial communications setup */
 #endif
        print_info,
        nand_init,              /* board specific nand init */
-#ifdef CONFIG_DRIVER_OMAP34XX_I2C
-       init_func_i2c,
-#endif
        NULL,
 };