From ee08a8260a3a7f6ef2001cfa3e7b6137b485f40a Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Wed, 23 Nov 2011 05:13:06 +0000 Subject: OMAP3: Add SPL_BOARD_INIT hook Add an SPL_BOARD_INIT hook and for OMAP3 have it turn on i2c. OMAP4 doesn't need i2c enabled in SPL. Enable SPL_BOARD_INIT on devkit8000. Cc: Frederik Kriewitz Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/spl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/arm/cpu/armv7/omap-common') diff --git a/arch/arm/cpu/armv7/omap-common/spl.c b/arch/arm/cpu/armv7/omap-common/spl.c index f72d389..25f04ed 100644 --- a/arch/arm/cpu/armv7/omap-common/spl.c +++ b/arch/arm/cpu/armv7/omap-common/spl.c @@ -116,6 +116,10 @@ void board_init_r(gd_t *id, ulong dummy) timer_init(); +#ifdef CONFIG_SPL_BOARD_INIT + spl_board_init(); +#endif + boot_device = omap_boot_device(); debug("boot device - %d\n", boot_device); switch (boot_device) { -- cgit v1.1