From: Grazvydas Ignotas Date: Mon, 21 Nov 2011 18:04:46 +0000 (+0200) Subject: Do i2c init before serial init X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fec30cc977b5a75efb81fc12e9ef9610d0502a14;p=pandora-x-loader.git Do i2c init before serial init pandora needs this to power the level shifter so that serial output can be seen. Signed-off-by: Grazvydas Ignotas --- diff --git a/lib/board.c b/lib/board.c index a5b45b8..1c79d58 100644 --- a/lib/board.c +++ b/lib/board.c @@ -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, };