public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] walnut 405gp bridge setting
@ 2003-10-14 23:49 Xiaoshan Zuo
  0 siblings, 0 replies; only message in thread
From: Xiaoshan Zuo @ 2003-10-14 23:49 UTC (permalink / raw)
  To: u-boot

I have a customized walnut 405 gp board. While using u-boot the bridge 
was not set correclty. The problem was that the bridge didn't respond to 
requst. The problem was traced down to PCIC0_CMD[MA]=0 on the bridge. 
The bit is set correclty in pci_405gp_init,
later it is got changed in pci_hose_scan_bus. It is not supposed to be 
changed, as suggested by the comment below in the code. But this comment 
contradict with function pci_hose_scan_bus which intentionly doesn't 
skip the bridge.  Removing #ifndef in pci_hose_scan_bus makes the bridge 
work. My question is: is this a typo?

Where can I search for u-boot mailing list archive? linuxppc is very 
easy to serach useful information.  Sorry for the newbie question.

Thanks,

Xiaoshan

/*
 * drivers/pci.c skips every host bridge but the 405GP since it could
 * be set as an Adapter.
 *
 * I (Andrew May) don't know what we should do here, but I don't want
 * the auto setup of a PCI device disabling what is done pci_405gp_init
 * as has happened before.
 */

void pci_405gp_setup_bridge(struct pci_controller *hose, pci_dev_t dev,
                            struct pci_config_table *entry)
{
#ifdef DEBUG
        printf("405gp_setup_bridge\n");
#endif
}

In drivers/pci.c:

int pci_hose_scan_bus(struct pci_controller *hose, int bus)
{
#ifndef CONFIG_405GP /* don't skip host bridge on ppc405gp */
                /* Skip our host bridge */
                if ( dev == PCI_BDF(hose->first_busno,0,0) )
                        continue;
#endif

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-14 23:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-14 23:49 [U-Boot-Users] walnut 405gp bridge setting Xiaoshan Zuo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox