From 2878942aa22ae2effd128bb0ada9c81b25bb048b Mon Sep 17 00:00:00 2001 From: Dinh Nguyen Date: Wed, 4 Apr 2018 17:18:21 -0500 Subject: configs: socfpga: convert i2c to dm Enable DM I2C driver on SoCFPGA platforms. Signed-off-by: Dinh Nguyen --- include/configs/socfpga_common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h index cf1f2b18866..025c7de2d13 100644 --- a/include/configs/socfpga_common.h +++ b/include/configs/socfpga_common.h @@ -137,6 +137,7 @@ /* * I2C support */ +#ifndef CONFIG_DM_I2C #define CONFIG_SYS_I2C #define CONFIG_SYS_I2C_BASE SOCFPGA_I2C0_ADDRESS #define CONFIG_SYS_I2C_BASE1 SOCFPGA_I2C1_ADDRESS @@ -157,6 +158,7 @@ unsigned int cm_get_l4_sp_clk_hz(void); #define IC_CLK (cm_get_l4_sp_clk_hz() / 1000000) #endif +#endif /* CONFIG_DM_I2C */ /* * QSPI support -- cgit v1.2.3