All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Williams <gfi8d1h02@sneakemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] What's the relationship between pci_init() and POST for PCI devices?
Date: Fri, 26 Mar 2004 07:50:28 -0800	[thread overview]
Message-ID: <29850-80439@sneakemail.com> (raw)
In-Reply-To: <200403260854.i2Q8sbkZ015390@ms.usish.com>

Birkin Shen birkin_shen-at-usish.com |u-boot-users| wrote:
> I defined CONFIG_PCI_PNP to support PCI Bus by PNP.
> 
> Now I want to have POST function for devices on PCI Bus, but I'm
> not sure about whether the function pci_init() has done the POST work.
> 
> I think the pci_init() hasn't done the POST work, am I right?

The CONFIG_PCI_PNP flag turns on u-boot doing a pci resource
allocation. This causes pci_init to scan the PCI bus and map all the
BARs and interrupts. That is all it means. Even without this config
defined, pci_init turns on the PCI bus for your processor.

In any case, I do not believe U-Boot (pci_init in particular) goes
through the PCI devices looking for BIST registers and running
self tests.

If you are booting Linux, it is not necessary to do the PNP part.
I leave it off on my PPC405GPr based board, and Linux does the
right thing.
-- 
Steve Williams                "The woods are lovely, dark and deep.
steve at XXXXXXXXXX           But I have promises to keep,
http://www.XXXXXXXXXX         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."

      reply	other threads:[~2004-03-26 15:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-26  8:52 [U-Boot-Users] What's the relationship between pci_init() and POST for PCI devices? Birkin Shen
2004-03-26 15:50 ` Stephen Williams [this message]

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=29850-80439@sneakemail.com \
    --to=gfi8d1h02@sneakemail.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.