diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2008-07-11 15:33:06 -0400 |
---|---|---|
committer | Andrew Fleming-AFLEMING <afleming@freescale.com> | 2008-07-14 19:53:39 -0500 |
commit | d04e76edf92f7f89696989e8702b97e020455af3 (patch) | |
tree | 588f84550362f63adadb203e0368d00ede528200 /board | |
parent | c158bcaca3b31cbe38c4143812e6170e38a57393 (diff) | |
download | u-boot-imx-d04e76edf92f7f89696989e8702b97e020455af3.zip u-boot-imx-d04e76edf92f7f89696989e8702b97e020455af3.tar.gz u-boot-imx-d04e76edf92f7f89696989e8702b97e020455af3.tar.bz2 |
sbc8560: add in ft_board_setup()
Add in for the sbc8560, the ft_board_setup() routine, based on what is
in use for the Freescale MPC8560ADS board.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/sbc8560/sbc8560.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/board/sbc8560/sbc8560.c b/board/sbc8560/sbc8560.c index 3b6b541..d9e598c 100644 --- a/board/sbc8560/sbc8560.c +++ b/board/sbc8560/sbc8560.c @@ -33,6 +33,8 @@ #include <ioports.h> #include <spd_sdram.h> #include <miiphy.h> +#include <libfdt.h> +#include <fdt_support.h> long int fixed_sdram (void); @@ -456,3 +458,29 @@ long int fixed_sdram (void) return CFG_SDRAM_SIZE * 1024 * 1024; } #endif /* !defined(CONFIG_SPD_EEPROM) */ + + +#if defined(CONFIG_OF_BOARD_SETUP) +void +ft_board_setup(void *blob, bd_t *bd) +{ + int node, tmp[2]; +#ifdef CONFIG_PCI + const char *path; +#endif + + ft_cpu_setup(blob, bd); + + node = fdt_path_offset(blob, "/aliases"); + tmp[0] = 0; + if (node >= 0) { +#ifdef CONFIG_PCI + path = fdt_getprop(blob, node, "pci0", NULL); + if (path) { + tmp[1] = hose.last_busno - hose.first_busno; + do_fixup_by_path(blob, path, "bus-range", &tmp, 8, 1); + } +#endif + } +} +#endif |