]> git.sur5r.net Git - u-boot/commitdiff
configs: socfpga: convert i2c to dm
authorDinh Nguyen <dinguyen@kernel.org>
Wed, 4 Apr 2018 22:18:21 +0000 (17:18 -0500)
committerMarek Vasut <marex@denx.de>
Tue, 17 Apr 2018 09:39:49 +0000 (11:39 +0200)
Enable DM I2C driver on SoCFPGA platforms.

Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
12 files changed:
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

index 742473f67296917c1c3359e9a6caa8f9922dc5d2..3f4295f908ff1d2d02a40e18c1339e4a0faa93a8 100644 (file)
@@ -42,6 +42,7 @@ CONFIG_DFU_MMC=y
 CONFIG_FPGA_SOCFPGA=y
 CONFIG_DM_GPIO=y
 CONFIG_DWAPB_GPIO=y
+CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_DW=y
index a68707425d7282d4fd7add94ca7a482388d2bdec..f6aaff513a974d9b7919393d69212322f17f2908 100644 (file)
@@ -42,6 +42,7 @@ CONFIG_DFU_MMC=y
 CONFIG_FPGA_SOCFPGA=y
 CONFIG_DM_GPIO=y
 CONFIG_DWAPB_GPIO=y
+CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_DW=y
index 6cf822097e31983fdf9ab4da313a090ef0007a6a..8ae907740821ac9466ade3d70115d7ad8c6ef737 100644 (file)
@@ -45,6 +45,7 @@ CONFIG_DFU_MMC=y
 CONFIG_FPGA_SOCFPGA=y
 CONFIG_DM_GPIO=y
 CONFIG_DWAPB_GPIO=y
+CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_DW=y
index 93e43d2a07b99b9368b4336a8df6b19ac53169dd..2455086341eb8951ed23c33844e401b387a455ed 100644 (file)
@@ -42,6 +42,7 @@ CONFIG_DFU_MMC=y
 CONFIG_FPGA_SOCFPGA=y
 CONFIG_DM_GPIO=y
 CONFIG_DWAPB_GPIO=y
+CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_DW=y
index 240216b3e985984873e6921a1d8d55666e37ed70..065df0c31e2fefd81064985383d36e15476762e5 100644 (file)
@@ -38,6 +38,7 @@ CONFIG_DFU_MMC=y
 CONFIG_FPGA_SOCFPGA=y
 CONFIG_DM_GPIO=y
 CONFIG_DWAPB_GPIO=y
+CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_DW=y
index 1e6eb8600567a0f4e908178861726aa4fefff5f6..faabeaf26722c1ed9989d0f326397abd9c444b6c 100644 (file)
@@ -38,6 +38,7 @@ CONFIG_SPL_DM=y
 CONFIG_FPGA_SOCFPGA=y
 CONFIG_DM_GPIO=y
 CONFIG_DWAPB_GPIO=y
+CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_DW=y
index 37d28216f34828e7d9922130682fdf541b0ad3f1..1f045d6ed61ff9118a4445cd14324446a084e799 100644 (file)
@@ -40,6 +40,7 @@ CONFIG_SYS_BOOTCOUNT_ADDR=0xfffffff8
 CONFIG_FPGA_SOCFPGA=y
 CONFIG_DM_GPIO=y
 CONFIG_DWAPB_GPIO=y
+CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
 # CONFIG_MMC is not set
 CONFIG_SPI_FLASH=y
index 12e22939e19bcf9bbd7ca8a22a06468818a88423..0cb429d1dd2c63193ec83083b4b434fc097bf1ef 100644 (file)
@@ -42,6 +42,7 @@ CONFIG_DFU_MMC=y
 CONFIG_FPGA_SOCFPGA=y
 CONFIG_DM_GPIO=y
 CONFIG_DWAPB_GPIO=y
+CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_DW=y
index 077d5c9d57e441f98b749f3f63bfdfc6e8ff281e..b85a7bca2bbe81d1e54c457019da14bfc74218f8 100644 (file)
@@ -42,6 +42,7 @@ CONFIG_DFU_MMC=y
 CONFIG_FPGA_SOCFPGA=y
 CONFIG_DM_GPIO=y
 CONFIG_DWAPB_GPIO=y
+CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_DW=y
index a4289e348f71c3d921e6f2630bc170021b7ea9d7..a1ee44272ebef9d298193afd9ead207de5a53c95 100644 (file)
@@ -43,6 +43,7 @@ CONFIG_DFU_MMC=y
 CONFIG_FPGA_SOCFPGA=y
 CONFIG_DM_GPIO=y
 CONFIG_DWAPB_GPIO=y
+CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_DW=y
index 05c903a511a1d28caa568c54fd2bce0d1759ca76..641fc1a471870a549d63390bd973fc31d768e3e3 100644 (file)
@@ -44,6 +44,7 @@ CONFIG_SYS_BOOTCOUNT_ADDR=0xfffffff8
 CONFIG_FPGA_SOCFPGA=y
 CONFIG_DM_GPIO=y
 CONFIG_DWAPB_GPIO=y
+CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_DW=y
index cf1f2b188664e1e197287eacff8caef614a1c08c..025c7de2d13bc9a05da1c3885ab01ff88429bf43 100644 (file)
 /*
  * 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
 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