On Aug 26, 2009, at 1:07 AM, Grant Likely wrote:
From: Grant Likely <grant.lik...@secretlab.ca>
The PCI device tree scanning code in pci_64.c is some useful
functionality.
It allows PCI devices to be described in the device tree instead of
being
probed for, which in turn allows pci devices to use all of the
device tree
facilities to describe complex PCI bus architectures like GPIO and IRQ
routing (perhaps not a common situation for desktop or server systems,
but useful for embedded systems with on-board PCI devices).
This patch moves the device tree scanning into pci-common.c so it is
available for 32-bit powerpc machines too.
Signed-off-by: Grant Likely <grant.lik...@secretlab.ca>
---
arch/powerpc/include/asm/pci-bridge.h | 5
arch/powerpc/include/asm/pci.h | 5
arch/powerpc/kernel/Makefile | 2
arch/powerpc/kernel/pci-common.c | 1
arch/powerpc/kernel/pci_64.c | 289
---------------------------
arch/powerpc/kernel/pci_of_scan.c | 358 ++++++++++++++++++++++++
+++++++++
6 files changed, 364 insertions(+), 296 deletions(-)
create mode 100644 arch/powerpc/kernel/pci_of_scan.c
Acked-by: Kumar Gala <ga...@kernel.crashing.org>
- k
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev