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
sunxi: Only initialize legacy I2C when enabled
[platform/kernel/u-boot.git]
/
arch
/
arm
/
mach-sunxi
/
board.c
diff --git
a/arch/arm/mach-sunxi/board.c
b/arch/arm/mach-sunxi/board.c
index
373cb56
..
b4ba2a7
100644
(file)
--- a/
arch/arm/mach-sunxi/board.c
+++ b/
arch/arm/mach-sunxi/board.c
@@
-338,7
+338,7
@@
void board_init_f(ulong dummy)
spl_init();
preloader_console_init();
-#if
def CONFIG_SPL_I2C
+#if
CONFIG_IS_ENABLED(I2C) && CONFIG_IS_ENABLED(SYS_I2C_LEGACY)
/* Needed early by sunxi_board_init if PMU is enabled */
i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
#endif