ppc4xx: Pass PCIe root-complex/endpoint configuration to Linux via the fdt
authorStefan Roese <sr@denx.de>
Tue, 22 Apr 2008 10:20:32 +0000 (12:20 +0200)
committerStefan Roese <sr@denx.de>
Fri, 25 Apr 2008 09:44:47 +0000 (11:44 +0200)
commit24bfedbd0be4dcaa94861407820d6a70fea7e03b
tree09bc6b1cf4e607931147d429e010636635a125d6
parent58c5376ba67767ee684069d43e7f747a5d9ae8ed
ppc4xx: Pass PCIe root-complex/endpoint configuration to Linux via the fdt

The PCIe root-complex/endpoint setup as configured via the "pcie_mode"
environment variable will now get passed to the Linux kernel by setting
the device_type property of the PCIe device tree node. For normal root-
complex configuration it will keep its defaults value of "pci" and for
endpoint configuration it will get changed to "pci-endpoint".

Signed-off-by: Stefan Roese <sr@denx.de>
cpu/ppc4xx/fdt.c
include/asm-ppc/4xx_pcie.h