linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PCI device support in Open Firmware (device tree syntax)
@ 2009-06-29 15:58 Johnny Hung
  2009-06-29 16:51 ` Scott Wood
  0 siblings, 1 reply; 6+ messages in thread
From: Johnny Hung @ 2009-06-29 15:58 UTC (permalink / raw)
  To: linux-embedded, linuxppc-dev, kernelnewbies, scottwood

Hi all,
    I am working in customized Freescale MPC8313 board. There are two
PCI devices (Broadcom Switch) in PCI bus.
Each PCI device has its configuration space. It contains
vendor/product ID (RO)..., and important information, likes BARs
(Base Address), INT line and IRQ(RW). These resources (BAR, INT, IRQ)
is assigned from BIOS in x86 arch.
    My problem is how to assign PCI device resources in device tree. I
can't find exist dts file as an example. I have read the
http://www.power.org/resources/downloads/Power_ePAPR_APPROVED_v1.0.pdf
file. It's described detailed about device tree
except PCI device. So, anyone give me a hint or sany tuff is appreciated.
   I think Linux Kernel parses device tree and get the PCI device
resources information then write into PCI configuration space.
So PCI device driver do pci_register_driver (get resource) and do
itself probe for PCI device. Is it right? CMIIAW

BRs, H. Johnny

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-07-01 22:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-29 15:58 PCI device support in Open Firmware (device tree syntax) Johnny Hung
2009-06-29 16:51 ` Scott Wood
2009-06-30  1:36   ` Johnny Hung
     [not found]     ` <2ea1731b0906292329t30cdc9a6q1fc36dc2273a2931@mail.gmail.com>
2009-06-30  7:33       ` Johnny Hung
2009-07-01 22:15         ` Benjamin Herrenschmidt
2009-06-30 15:32     ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).