diff options
author | Matvejchikov Ilya <matvejchikov@gmail.com> | 2008-07-06 13:57:00 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-09 23:57:59 +0200 |
commit | 0e6989b9faf1588e8723535539e88a0df3c71356 (patch) | |
tree | 5489005650c4a74427e9947a6864119fbb60d5f0 /cpu/mpc8260 | |
parent | dc4b0b38d4aadf08826f6c31270f1eecd27964fd (diff) | |
download | u-boot-imx-0e6989b9faf1588e8723535539e88a0df3c71356.zip u-boot-imx-0e6989b9faf1588e8723535539e88a0df3c71356.tar.gz u-boot-imx-0e6989b9faf1588e8723535539e88a0df3c71356.tar.bz2 |
FDT memory and pci node fixes for MPC8260ADS
Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com>
Diffstat (limited to 'cpu/mpc8260')
-rw-r--r-- | cpu/mpc8260/pci.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpu/mpc8260/pci.c b/cpu/mpc8260/pci.c index 75c6ab2..940f5c0 100644 --- a/cpu/mpc8260/pci.c +++ b/cpu/mpc8260/pci.c @@ -33,6 +33,10 @@ #include <mpc8260.h> #include <asm/m8260_pci.h> #include <asm/io.h> +#ifdef CONFIG_OF_LIBFDT +#include <libfdt.h> +#include <fdt_support.h> +#endif #if defined CONFIG_MPC8266ADS || defined CONFIG_MPC8272 || defined CONFIG_PM826 DECLARE_GLOBAL_DATA_PTR; @@ -449,4 +453,12 @@ void pci_mpc8250_init (struct pci_controller *hose) immap->im_pci.pci_emr |= cpu_to_le32 (PCI_ERROR_PCI_NO_RSP); } +#if defined(CONFIG_OF_LIBFDT) +void ft_pci_setup(void *blob, bd_t *bd) +{ + do_fixup_by_prop_u32(blob, "device_type", "pci", 4, + "clock-frequency", bd->pci_clk, 1); +} +#endif + #endif /* CONFIG_PCI */ |