aboutsummaryrefslogtreecommitdiff
path: root/board/logicpd
diff options
context:
space:
mode:
authorAdam Ford <aford173@gmail.com>2018-08-19 11:11:03 -0500
committerTom Rini <trini@konsulko.com>2018-09-11 21:48:04 -0400
commit819ad5f625b17d189c5dcaec377c451fd3266def (patch)
treecd7fddd18fa4837d4f9be85bf2e77deda3e16017 /board/logicpd
parent8cd21a63463318b1f7c90778da364dd649c27ca9 (diff)
downloadu-boot-819ad5f625b17d189c5dcaec377c451fd3266def.zip
u-boot-819ad5f625b17d189c5dcaec377c451fd3266def.tar.gz
u-boot-819ad5f625b17d189c5dcaec377c451fd3266def.tar.bz2
ARM: am3517_evm: Disable DM_I2C_COMPAT
DM_I2C_COMPAT is somehow being enabled outside of Kconfig, so this explicitly undefines it in the header file, and brackets the I2C initialization around an #ifdef to not manually initialize the I2C controller when the DM_I2C is enabled. Signed-off-by: Adam Ford <aford173@gmail.com> Tested-by: Derald D. Woods <woods.technical@gmail.com>
Diffstat (limited to 'board/logicpd')
-rw-r--r--board/logicpd/am3517evm/am3517evm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/logicpd/am3517evm/am3517evm.c b/board/logicpd/am3517evm/am3517evm.c
index da8be22..6f72839 100644
--- a/board/logicpd/am3517evm/am3517evm.c
+++ b/board/logicpd/am3517evm/am3517evm.c
@@ -108,10 +108,11 @@ int misc_init_r(void)
volatile unsigned int ctr;
u32 reset;
+#if !defined(CONFIG_DM_I2C)
#ifdef CONFIG_SYS_I2C_OMAP24XX
i2c_init(CONFIG_SYS_OMAP24_I2C_SPEED, CONFIG_SYS_OMAP24_I2C_SLAVE);
#endif
-
+#endif
omap_die_id_display();
am3517_evm_musb_init();