[PATCH v3 75/95] pci: Use the correct symbol to enable struct members

Simon Glass sjg at chromium.org
Mon Feb 13 00:16:18 CET 2023


This ends up being quite complicated since we have various pieces of code
assuming that it can access the members and the conditions may not line up
with SPL_PCI and serial SPL_ configs.

Fix it by using a PPL condition, so that the condition does not change
when split config is enabled.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 include/asm-generic/global_data.h | 2 +-
 include/ns16550.h                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index da17ac8cbc8..7856d8cc33e 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -315,7 +315,7 @@ struct global_data {
 	 */
 	unsigned long malloc_ptr;
 #endif
-#ifdef CONFIG_PCI
+#ifdef CONFIG_PPL_PCI
 	/**
 	 * @hose: PCI hose for early use
 	 */
diff --git a/include/ns16550.h b/include/ns16550.h
index e7e68663d03..552db4da2ad 100644
--- a/include/ns16550.h
+++ b/include/ns16550.h
@@ -74,7 +74,7 @@ struct ns16550_plat {
 	int clock;
 	u32 fcr;
 	int flags;
-#if defined(CONFIG_PCI) && defined(CONFIG_SPL)
+#if defined(CONFIG_PPL_PCI) && defined(CONFIG_SPL)
 	int bdf;
 #endif
 };
-- 
2.39.1.581.gbfd45094c4-goog



More information about the U-Boot mailing list