projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OMAP3: Add SPL_BOARD_INIT hook
[platform/kernel/u-boot.git]
/
arch
/
arm
/
cpu
/
armv7
/
omap3
/
board.c
diff --git
a/arch/arm/cpu/armv7/omap3/board.c
b/arch/arm/cpu/armv7/omap3/board.c
index
cdf452d
..
1f33c63
100644
(file)
--- a/
arch/arm/cpu/armv7/omap3/board.c
+++ b/
arch/arm/cpu/armv7/omap3/board.c
@@
-40,6
+40,7
@@
#include <asm/armv7.h>
#include <asm/arch/gpio.h>
#include <asm/omap_common.h>
#include <asm/armv7.h>
#include <asm/arch/gpio.h>
#include <asm/omap_common.h>
+#include <i2c.h>
/* Declarations */
extern omap3_sysinfo sysinfo;
/* Declarations */
extern omap3_sysinfo sysinfo;
@@
-89,6
+90,10
@@
u32 omap_boot_device(void)
return omap3_boot_device;
}
return omap3_boot_device;
}
+void spl_board_init(void)
+{
+ i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
+}
#endif /* CONFIG_SPL_BUILD */
#endif /* CONFIG_SPL_BUILD */