Commit 2878942aa22ae2effd128bb0ada9c81b25bb048b
Committed by
Marek Vasut
1 parent
2ac718821a
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
configs: socfpga: convert i2c to dm
Enable DM I2C driver on SoCFPGA platforms. Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Showing 12 changed files with 13 additions and 0 deletions Side-by-side Diff
- configs/socfpga_arria5_defconfig
- configs/socfpga_cyclone5_defconfig
- configs/socfpga_dbm_soc1_defconfig
- configs/socfpga_de0_nano_soc_defconfig
- configs/socfpga_de10_nano_defconfig
- configs/socfpga_de1_soc_defconfig
- configs/socfpga_is1_defconfig
- configs/socfpga_mcvevk_defconfig
- configs/socfpga_sockit_defconfig
- configs/socfpga_socrates_defconfig
- configs/socfpga_sr1500_defconfig
- include/configs/socfpga_common.h
configs/socfpga_arria5_defconfig
configs/socfpga_cyclone5_defconfig
configs/socfpga_dbm_soc1_defconfig
configs/socfpga_de0_nano_soc_defconfig
configs/socfpga_de10_nano_defconfig
configs/socfpga_de1_soc_defconfig
configs/socfpga_is1_defconfig
configs/socfpga_mcvevk_defconfig
configs/socfpga_sockit_defconfig
configs/socfpga_socrates_defconfig
configs/socfpga_sr1500_defconfig
include/configs/socfpga_common.h
... | ... | @@ -137,6 +137,7 @@ |
137 | 137 | /* |
138 | 138 | * I2C support |
139 | 139 | */ |
140 | +#ifndef CONFIG_DM_I2C | |
140 | 141 | #define CONFIG_SYS_I2C |
141 | 142 | #define CONFIG_SYS_I2C_BASE SOCFPGA_I2C0_ADDRESS |
142 | 143 | #define CONFIG_SYS_I2C_BASE1 SOCFPGA_I2C1_ADDRESS |
... | ... | @@ -157,6 +158,7 @@ |
157 | 158 | unsigned int cm_get_l4_sp_clk_hz(void); |
158 | 159 | #define IC_CLK (cm_get_l4_sp_clk_hz() / 1000000) |
159 | 160 | #endif |
161 | +#endif /* CONFIG_DM_I2C */ | |
160 | 162 | |
161 | 163 | /* |
162 | 164 | * QSPI support |