Skip to contentSkip to conversation

Add support CONFIG_PCIAUTO_SKIP_HOST_BRIDGE in pci_auto.c

PATCH New Tsi-Chung Liew 3 participants 5 messages Mar 17, 2008 – Mar 19, 2008 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add support CONFIG_PCIAUTO_SKIP_HOST_BRIDGE in pci_auto.c

Provide common configuration in pciauto_config_device() usable for all architectures

---
 drivers/pci/pci_auto.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/pci/pci_auto.c +1 -1
index acfda83..1085a6c 100644
@@ -383,7 +383,7 @@ int pciauto_config_device(struct pci_controller *hose, pci_dev_t dev)
 		hose->current_busno++;
 		break;
 
-#ifdef CONFIG_MPC5200
+#if defined(CONFIG_MPC5200) || defined(CONFIG_PCIAUTO_SKIP_HOST_BRIDGE)
 	case PCI_CLASS_BRIDGE_OTHER:
 		DEBUGF("PCI Autoconfig: Skipping bridge device %d\n",
 		       PCI_DEV(dev));
Signature · 1 line
1.5.4.1
#1 lore raw

PATCH 1/1 Add support CONFIG_PCIAUTO_SKIP_HOST_BRIDGE in pci_auto.c

Quoted 4 lines · Tsi-Chung Liew

Provide common configuration in pciauto_config_device() usable for all architectures

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================

#2 lore raw

PATCH 1/1 Add support CONFIG_PCIAUTO_SKIP_HOST_BRIDGE in pci_auto.c

In reply to Tsi-Chung Liew
Quoted 13 lines · Tsi-Chung Liew

Provide common configuration in pciauto_config_device() usable for all architectures

---
 drivers/pci/pci_auto.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/pci/pci_auto.c +0 -0
index acfda83..1085a6c 100644

drivers/pci/pci_auto.c int pciauto_config_device(struct pci_controller *hose, pci_dev_t dev) · line 386

Quoted 5 lines
drivers/pci/pci_auto.c +1 -1
@@ -383,7 +383,7 @@ int pciauto_config_device(struct pci_controller *hose, pci_dev_t dev)
 		hose->current_busno++;
 		break;
 
-#ifdef CONFIG_MPC5200
+#if defined(CONFIG_MPC5200) || defined(CONFIG_PCIAUTO_SKIP_HOST_BRIDGE)

I think that you can remove the CONFIG_MPC5200 and define it in the configs of the boards

Best Regards
J.

#3 lore raw

PATCH 1/1 Add support CONFIG_PCIAUTO_SKIP_HOST_BRIDGE in pci_auto.c

Quoted 8 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 8 lines
drivers/pci/pci_auto.c +0 -0
index acfda83..1085a6c 100644
@@ -383,7 +383,7 @@ int pciauto_config_device(struct pci_controller
 *hose, pci_dev_t dev) hose->current_busno++;
 		break;
 
Quoted 5 lines

drivers/pci/pci_auto.c int pciauto_config_device(struct pci_controller *hose, pci_dev_t dev) · line 386

Quoted 2 lines
drivers/pci/pci_auto.c +1 -1
-#ifdef CONFIG_MPC5200
+#if defined(CONFIG_MPC5200) || defined(CONFIG_PCIAUTO_SKIP_HOST_BRIDGE)

I think that you can remove the CONFIG_MPC5200 and define it in the configs of the boards

That would be the optimal version of course.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================

#4 lore raw

PATCH 1/1 Add support CONFIG_PCIAUTO_SKIP_HOST_BRIDGE in pci_auto.c

I will change it at the later patch with three CF EVBs.

Regards,
TsiChung

-----Original Message-----
From: Stefan Roese [mailto:sr at denx.de]
Sent: Wednesday, March 19, 2008 3:34 AM
To: u-boot-users at lists.sourceforge.net
Cc: Jean-Christophe PLAGNIOL-VILLARD; Liew Tsi Chung; Wolfgang Denx; Rigby John
Subject: Re: [U-Boot-Users] [PATCH] Add support CONFIG_PCIAUTO_SKIP_HOST_BRIDGE in pci_auto.c

Quoted 8 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 8 lines
drivers/pci/pci_auto.c index renamed from drivers/pci/pci_auto.c +0 -0

acfda83..1085a6c 100644

drivers/pci/pci_auto.c +0 -0
@@ -383,7 +383,7 @@ int pciauto_config_device(struct pci_controller 
 *hose, pci_dev_t dev) hose->current_busno++;
 		break;
 
Quoted 6 lines

drivers/pci/pci_auto.c int pciauto_config_device(struct pci_controller · line 387

Quoted 3 lines
drivers/pci/pci_auto.c +2 -1
-#ifdef CONFIG_MPC5200
+#if defined(CONFIG_MPC5200) || 
+defined(CONFIG_PCIAUTO_SKIP_HOST_BRIDGE)

I think that you can remove the CONFIG_MPC5200 and define it in the configs of the boards

That would be the optimal version of course.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================