From e58eebb5140ce52838a7a31279b434d7030b2e35 Mon Sep 17 00:00:00 2001
From: Tom Rini <trini@konsulko.com>
Date: Mon, 20 Jun 2022 08:07:50 -0400
Subject: [PATCH] Convert CONFIG_PCI_CONFIG_HOST_BRIDGE to Kconfig

This converts the following to Kconfig:
   CONFIG_PCI_CONFIG_HOST_BRIDGE

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 drivers/pci/Kconfig          | 4 ++++
 include/configs/x86-common.h | 5 -----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig
index 0ef5c29233..53d0ebd745 100644
--- a/drivers/pci/Kconfig
+++ b/drivers/pci/Kconfig
@@ -48,6 +48,10 @@ config PCI_REGION_MULTI_ENTRY
 	  region type. This helps to add support for SoC's like OcteonTX/TX2
 	  where every peripheral is on the PCI bus.
 
+config PCI_CONFIG_HOST_BRIDGE
+	bool "Configure PCI host bridges"
+	default y if X86
+
 config PCI_MAP_SYSTEM_MEMORY
 	bool "Map local system memory from a virtual base address"
 	depends on MIPS
diff --git a/include/configs/x86-common.h b/include/configs/x86-common.h
index f28fafe15c..1366f623aa 100644
--- a/include/configs/x86-common.h
+++ b/include/configs/x86-common.h
@@ -44,11 +44,6 @@
  * Environment configuration
  */
 
-/*-----------------------------------------------------------------------
- * PCI configuration
- */
-#define CONFIG_PCI_CONFIG_HOST_BRIDGE
-
 /*-----------------------------------------------------------------------
  * USB configuration
  */
-- 
2.39.5