From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] MPC8555 pci issue
Date: Tue, 8 Jan 2013 14:02:52 -0600 [thread overview]
Message-ID: <1357675372.10453.3@snotra> (raw)
In-Reply-To: <9927831f95343d03d8eab07716c0f30f.squirrel@mail.bel.co.in> (from ashokkumarkacham@bel.co.in on Thu Jan 3 07:03:49 2013)
On 01/03/2013 07:03:49 AM, Ashok Kumar Kacham wrote:
>
> Dear Wolfgang Denk
>
> > Dear "Ashok Kumar Kacham",
> >
> > In message
> <0969b5bdd1b15922721db142831c3b02.squirrel@mail.bel.co.in> you
> > wrote:
> >>
> >> Hi all,
> >>
> >> we have a pci-to-usb controller(32bit,33MHZ,PCI1 controller, IDSEL
> 18)
> >> on
> >> pci bus, we disabled PCI and tried to read the configuration
> data(vendor
> >> and
> >> device id) of the usb controller by giving following commands.
> >> (0xe0000000 is the CCSR base address)
What happens if you don't disable PCI?
> same thing is working in one of our MPC8540 based board, where we are
> able
> to read the vendor id and device id of the pci device properly.
With PCI disabled?
Are you sure you have the right IDSEL? Do you have PCI errors disabled
so that you'll get 0xffffffff rather than a machine check if nothing
responds?
Oh, and there's this comment in arch/powerpc/cpu/mpc85xx/pci.c:
#if defined(CONFIG_MPC8555CDS) || defined(CONFIG_MPC8541CDS)
/*
* This is a SW workaround for an apparent HW problem
* in the PCI controller on the MPC85555/41 CDS boards.
* The first config cycle must be to a valid, known
* device on the PCI bus in order to trick the PCI
* controller state machine into a known valid state.
* Without this, the first config cycle has the chance
* of hanging the controller permanently, just leaving
* it in a semi-working state, or leaving it working.
*
* Pick on the Tundra, Device 17, to get it right.
*/
{
u8 header_type;
pci_hose_read_config_byte(hose,
PCI_BDF(0,BRIDGE_ID,0),
PCI_HEADER_TYPE,
&header_type);
}
#endif
-Scott
next prev parent reply other threads:[~2013-01-08 20:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-03 11:30 [U-Boot] MPC8555 pci issue Ashok Kumar Kacham
2013-01-03 12:10 ` Wolfgang Denk
2013-01-03 13:03 ` Ashok Kumar Kacham
2013-01-08 20:02 ` Scott Wood [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-12-31 6:10 Ashok Kumar Kacham
2012-12-31 14:50 ` Wolfgang Denk
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=1357675372.10453.3@snotra \
--to=scottwood@freescale.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox