From: Minda Chen <minda.chen@starfivetech.com>
To: "Heiko Schocher" <hs@denx.de>, "Simon Glass" <sjg@chromium.org>,
"Stefan Roese" <sr@denx.de>, "Andrew Scull" <ascull@google.com>,
"Pali Rohár" <pali@kernel.org>,
"Mark Kettenis" <kettenis@openbsd.org>,
"Rick Chen" <rick@andestech.com>, Leo <ycliang@andestech.com>
Cc: <u-boot@lists.denx.de>, Mason Huo <mason.huo@starfivetech.com>,
"Leyfoon Tan" <leyfoon.tan@starfivetech.com>,
Kevin Xie <kevin.xie@starfivetech.com>,
Minda Chen <minda.chen@starfivetech.com>
Subject: [PATCH v8 1/4] i2c: designware: Add Kconfig for designware_i2c_pci.c
Date: Tue, 25 Jul 2023 17:46:47 +0800 [thread overview]
Message-ID: <20230725094650.128325-2-minda.chen@starfivetech.com> (raw)
In-Reply-To: <20230725094650.128325-1-minda.chen@starfivetech.com>
As the Designware_i2c_pci.c uses ACPI APIs, If some SoCs (StarFive
JH7110) contain Designware i2c and PCI but do not use ACPI,
This file will be can't be compiled. So add a new Kconfig for
designware_i2c_pci.c, which depends on ACPIGEN
Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
---
drivers/i2c/Kconfig | 9 +++++++++
drivers/i2c/Makefile | 4 +---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index 5e81698143..4c76fd7e41 100644
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
@@ -231,6 +231,15 @@ 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 SYS_I2C_DW_PCI
+ bool "Designware PCI I2C Controller"
+ depends on SYS_I2C_DW && PCI && ACPIGEN
+ default y
+ help
+ Say yes here to select the Designware PCI I2C Host Controller.
+ This PCI I2C controller is the base on Desigware I2C host
+ controller.
+
config SYS_I2C_AST2600
bool "AST2600 I2C Controller"
depends on DM_I2C && ARCH_ASPEED
diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile
index 99545df2e5..d5b85f398d 100644
--- a/drivers/i2c/Makefile
+++ b/drivers/i2c/Makefile
@@ -18,9 +18,7 @@ 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
-ifdef CONFIG_PCI
-obj-$(CONFIG_SYS_I2C_DW) += designware_i2c_pci.o
-endif
+obj-$(CONFIG_SYS_I2C_DW_PCI) += designware_i2c_pci.o
obj-$(CONFIG_SYS_I2C_FSL) += fsl_i2c.o
obj-$(CONFIG_SYS_I2C_IHS) += ihs_i2c.o
obj-$(CONFIG_SYS_I2C_INTEL) += intel_i2c.o
--
2.17.1
next prev parent reply other threads:[~2023-07-25 9:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-25 9:46 [PATCH v7 0/4] Add StarFive JH7110 PCIe drvier support Minda Chen
2023-07-25 9:46 ` Minda Chen [this message]
2023-07-26 3:07 ` [PATCH v8 1/4] i2c: designware: Add Kconfig for designware_i2c_pci.c Leo Liang
2023-08-01 6:06 ` Minda Chen
2023-08-09 2:03 ` Simon Glass
2023-07-25 9:46 ` [PATCH v8 2/4] starfive: pci: Add StarFive JH7110 pcie driver Minda Chen
2023-07-25 9:46 ` [PATCH v8 3/4] configs: starfive-jh7110: Add support for PCIe host driver Minda Chen
2023-07-25 9:46 ` [PATCH v8 4/4] riscv: dts: starfive: Enable PCIe host controller Minda Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230725094650.128325-2-minda.chen@starfivetech.com \
--to=minda.chen@starfivetech.com \
--cc=ascull@google.com \
--cc=hs@denx.de \
--cc=kettenis@openbsd.org \
--cc=kevin.xie@starfivetech.com \
--cc=leyfoon.tan@starfivetech.com \
--cc=mason.huo@starfivetech.com \
--cc=pali@kernel.org \
--cc=rick@andestech.com \
--cc=sjg@chromium.org \
--cc=sr@denx.de \
--cc=u-boot@lists.denx.de \
--cc=ycliang@andestech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox