summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYanhong Wang <yanhong.wang@linux.starfivetech.com>2022-10-13 04:00:01 +0300
committerHal Feng <hal.feng@starfivetech.com>2023-11-29 05:47:40 +0300
commitb2edbe9c9edf1fd7be1a399e15128874dd7db341 (patch)
treecc73ed502f92a9608c7330bb8125593615aa0c86
parentf1428044084cf04e545cd4f5d67ad68adf3f7873 (diff)
downloadu-boot-b2edbe9c9edf1fd7be1a399e15128874dd7db341.tar.xz
i2c: designware: support SYS_I2C_DW in SPL
Add SYS_I2C_DW driver to support in SPL. Signed-off-by: Yanhong Wang <yanhong.wang@linux.starfivetech.com>
-rw-r--r--drivers/i2c/Kconfig7
-rw-r--r--drivers/i2c/Makefile2
2 files changed, 8 insertions, 1 deletions
diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index 63d03a3ceb..a19370c8a1 100644
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
@@ -158,6 +158,13 @@ config SYS_I2C_DW
controller is used in various SoCs, e.g. the ST SPEAr, Altera
SoCFPGA, Synopsys ARC700 and some Intel x86 SoCs.
+config SPL_SYS_I2C_DW
+ bool "Designware I2C Controller in SPL"
+ default n
+ help
+ Say yes here to select the Designware I2C Host Controller in SPL. This
+ controller is used in StarFive JH7110 SoC.
+
config SYS_I2C_ASPEED
bool "Aspeed I2C Controller"
depends on DM_I2C && ARCH_ASPEED
diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile
index 69bd27c7cd..d25ddbe05d 100644
--- a/drivers/i2c/Makefile
+++ b/drivers/i2c/Makefile
@@ -17,7 +17,7 @@ obj-$(CONFIG_SYS_I2C_AT91) += at91_i2c.o
obj-$(CONFIG_SYS_I2C_CADENCE) += i2c-cdns.o
obj-$(CONFIG_SYS_I2C_CA) += i2c-cortina.o
obj-$(CONFIG_SYS_I2C_DAVINCI) += davinci_i2c.o
-obj-$(CONFIG_SYS_I2C_DW) += designware_i2c.o
+obj-$(CONFIG_$(SPL_)SYS_I2C_DW) += designware_i2c.o
ifdef CONFIG_ACPIGEN
ifdef CONFIG_PCI
obj-$(CONFIG_SYS_I2C_DW) += designware_i2c_pci.o