Commit 2878942aa22ae2effd128bb0ada9c81b25bb048b

Authored by Dinh Nguyen
Committed by Marek Vasut
1 parent 2ac718821a

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
... ... @@ -42,6 +42,7 @@
42 42 CONFIG_FPGA_SOCFPGA=y
43 43 CONFIG_DM_GPIO=y
44 44 CONFIG_DWAPB_GPIO=y
  45 +CONFIG_DM_I2C=y
45 46 CONFIG_SYS_I2C_DW=y
46 47 CONFIG_DM_MMC=y
47 48 CONFIG_MMC_DW=y
configs/socfpga_cyclone5_defconfig
... ... @@ -42,6 +42,7 @@
42 42 CONFIG_FPGA_SOCFPGA=y
43 43 CONFIG_DM_GPIO=y
44 44 CONFIG_DWAPB_GPIO=y
  45 +CONFIG_DM_I2C=y
45 46 CONFIG_SYS_I2C_DW=y
46 47 CONFIG_DM_MMC=y
47 48 CONFIG_MMC_DW=y
configs/socfpga_dbm_soc1_defconfig
... ... @@ -45,6 +45,7 @@
45 45 CONFIG_FPGA_SOCFPGA=y
46 46 CONFIG_DM_GPIO=y
47 47 CONFIG_DWAPB_GPIO=y
  48 +CONFIG_DM_I2C=y
48 49 CONFIG_SYS_I2C_DW=y
49 50 CONFIG_DM_MMC=y
50 51 CONFIG_MMC_DW=y
configs/socfpga_de0_nano_soc_defconfig
... ... @@ -42,6 +42,7 @@
42 42 CONFIG_FPGA_SOCFPGA=y
43 43 CONFIG_DM_GPIO=y
44 44 CONFIG_DWAPB_GPIO=y
  45 +CONFIG_DM_I2C=y
45 46 CONFIG_SYS_I2C_DW=y
46 47 CONFIG_DM_MMC=y
47 48 CONFIG_MMC_DW=y
configs/socfpga_de10_nano_defconfig
... ... @@ -38,6 +38,7 @@
38 38 CONFIG_FPGA_SOCFPGA=y
39 39 CONFIG_DM_GPIO=y
40 40 CONFIG_DWAPB_GPIO=y
  41 +CONFIG_DM_I2C=y
41 42 CONFIG_SYS_I2C_DW=y
42 43 CONFIG_DM_MMC=y
43 44 CONFIG_MMC_DW=y
configs/socfpga_de1_soc_defconfig
... ... @@ -38,6 +38,7 @@
38 38 CONFIG_FPGA_SOCFPGA=y
39 39 CONFIG_DM_GPIO=y
40 40 CONFIG_DWAPB_GPIO=y
  41 +CONFIG_DM_I2C=y
41 42 CONFIG_SYS_I2C_DW=y
42 43 CONFIG_DM_MMC=y
43 44 CONFIG_MMC_DW=y
configs/socfpga_is1_defconfig
... ... @@ -40,6 +40,7 @@
40 40 CONFIG_FPGA_SOCFPGA=y
41 41 CONFIG_DM_GPIO=y
42 42 CONFIG_DWAPB_GPIO=y
  43 +CONFIG_DM_I2C=y
43 44 CONFIG_SYS_I2C_DW=y
44 45 # CONFIG_MMC is not set
45 46 CONFIG_SPI_FLASH=y
configs/socfpga_mcvevk_defconfig
... ... @@ -42,6 +42,7 @@
42 42 CONFIG_FPGA_SOCFPGA=y
43 43 CONFIG_DM_GPIO=y
44 44 CONFIG_DWAPB_GPIO=y
  45 +CONFIG_DM_I2C=y
45 46 CONFIG_SYS_I2C_DW=y
46 47 CONFIG_DM_MMC=y
47 48 CONFIG_MMC_DW=y
configs/socfpga_sockit_defconfig
... ... @@ -42,6 +42,7 @@
42 42 CONFIG_FPGA_SOCFPGA=y
43 43 CONFIG_DM_GPIO=y
44 44 CONFIG_DWAPB_GPIO=y
  45 +CONFIG_DM_I2C=y
45 46 CONFIG_SYS_I2C_DW=y
46 47 CONFIG_DM_MMC=y
47 48 CONFIG_MMC_DW=y
configs/socfpga_socrates_defconfig
... ... @@ -43,6 +43,7 @@
43 43 CONFIG_FPGA_SOCFPGA=y
44 44 CONFIG_DM_GPIO=y
45 45 CONFIG_DWAPB_GPIO=y
  46 +CONFIG_DM_I2C=y
46 47 CONFIG_SYS_I2C_DW=y
47 48 CONFIG_DM_MMC=y
48 49 CONFIG_MMC_DW=y
configs/socfpga_sr1500_defconfig
... ... @@ -44,6 +44,7 @@
44 44 CONFIG_FPGA_SOCFPGA=y
45 45 CONFIG_DM_GPIO=y
46 46 CONFIG_DWAPB_GPIO=y
  47 +CONFIG_DM_I2C=y
47 48 CONFIG_SYS_I2C_DW=y
48 49 CONFIG_DM_MMC=y
49 50 CONFIG_MMC_DW=y
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