summaryrefslogtreecommitdiff
path: root/include/configs/socfpga_common.h
diff options
context:
space:
mode:
authorDinh Nguyen <dinguyen@kernel.org>2018-04-05 01:18:21 +0300
committerMarek Vasut <marex@denx.de>2018-04-17 12:39:49 +0300
commit2878942aa22ae2effd128bb0ada9c81b25bb048b (patch)
tree1df2bfde06c18cd195997cd52014a805a1fd17de /include/configs/socfpga_common.h
parent2ac718821a88885bd749976ff3ce6f853f2da0c9 (diff)
downloadu-boot-2878942aa22ae2effd128bb0ada9c81b25bb048b.tar.xz
configs: socfpga: convert i2c to dm
Enable DM I2C driver on SoCFPGA platforms. Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Diffstat (limited to 'include/configs/socfpga_common.h')
-rw-r--r--include/configs/socfpga_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index cf1f2b1886..025c7de2d1 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