u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
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 v7 1/4] i2c: designware: Add CONFIG_ACPIGEN limitation to designware_i2c_pci.c
Date: Thu, 20 Jul 2023 19:23:30 +0800	[thread overview]
Message-ID: <20230720112333.9255-2-minda.chen@starfivetech.com> (raw)
In-Reply-To: <20230720112333.9255-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 ACPIGEN to
designware_i2c_pci.c

Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
---
 drivers/i2c/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile
index 99545df2e5..92b1ec6bc3 100644
--- a/drivers/i2c/Makefile
+++ b/drivers/i2c/Makefile
@@ -18,9 +18,11 @@ 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_ACPIGEN
 ifdef CONFIG_PCI
 obj-$(CONFIG_SYS_I2C_DW) += designware_i2c_pci.o
 endif
+endif
 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


  reply	other threads:[~2023-07-20 11:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-20 11:23 [PATCH v7 0/4] Add StarFive JH7110 PCIe drvier support Minda Chen
2023-07-20 11:23 ` Minda Chen [this message]
2023-07-20 19:42   ` [PATCH v7 1/4] i2c: designware: Add CONFIG_ACPIGEN limitation to designware_i2c_pci.c Simon Glass
2023-07-21  1:32     ` Minda Chen
2023-07-20 11:23 ` [PATCH v7 2/4] starfive: pci: Add StarFive JH7110 pcie driver Minda Chen
2023-07-25  1:24   ` Leo Liang
2023-07-20 11:23 ` [PATCH v7 3/4] configs: starfive-jh7110: Add support for PCIe host driver Minda Chen
2023-07-25  1:25   ` Leo Liang
2023-07-20 11:23 ` [PATCH v7 4/4] riscv: dts: starfive: Enable PCIe host controller Minda Chen
2023-07-25  1:26   ` Leo Liang

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=20230720112333.9255-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;
as well as URLs for NNTP newsgroup(s).