diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2007-08-15 22:30:19 -0500 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2007-08-15 22:36:33 -0500 |
commit | 8f9e0e9f339aee4ce31a338d5f27356eb5457f85 (patch) | |
tree | a89aae79ac44f23ca179aa71f3304d6b5130e7da /board/mpc8360emds/pci.c | |
parent | f4b2ac5ed9aaff9920d487bff8a59696c083a524 (diff) | |
download | u-boot-imx-8f9e0e9f339aee4ce31a338d5f27356eb5457f85.zip u-boot-imx-8f9e0e9f339aee4ce31a338d5f27356eb5457f85.tar.gz u-boot-imx-8f9e0e9f339aee4ce31a338d5f27356eb5457f85.tar.bz2 |
mpc83xx: remaining 8360 libfdt fixes
PCI clocks and QE frequencies weren't being updated, and the core clock
was being updated incorrectly. This patch also adds a /memory node if
it doesn't already exist prior to update.
plus some cosmetic trimming to single line comments.
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'board/mpc8360emds/pci.c')
-rw-r--r-- | board/mpc8360emds/pci.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/board/mpc8360emds/pci.c b/board/mpc8360emds/pci.c index 8f90471..7981285 100644 --- a/board/mpc8360emds/pci.c +++ b/board/mpc8360emds/pci.c @@ -22,7 +22,6 @@ #include <ft_build.h> #elif defined(CONFIG_OF_LIBFDT) #include <libfdt.h> -#include <libfdt_env.h> #endif #include <asm/fsl_i2c.h> @@ -314,7 +313,12 @@ ft_pci_setup(void *blob, bd_t *bd) if (nodeoffset >= 0) { tmp[0] = cpu_to_be32(hose[0].first_busno); tmp[1] = cpu_to_be32(hose[0].last_busno); - err = fdt_setprop(blob, nodeoffset, "bus-range", tmp, sizeof(tmp)); + err = fdt_setprop(blob, nodeoffset, "bus-range", + tmp, sizeof(tmp)); + + tmp[0] = cpu_to_be32(gd->pci_clk); + err = fdt_setprop(blob, nodeoffset, "clock-frequency", + tmp, sizeof(tmp[0])); } } #elif defined(CONFIG_OF_FLAT_TREE) |