diff options
author | Wolfgang Denk <wd@denx.de> | 2008-07-15 21:37:23 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-15 21:37:23 +0200 |
commit | 1d28d48e3df65ef867395eb84ee0498f1c52a384 (patch) | |
tree | 155cb75e5f73083f0b77a10679608808c8d7437a /board/sbc8560/sbc8560.c | |
parent | 85e5808e8ea9f77da5219f23394112f0b424fa5e (diff) | |
parent | 1107014e835ec9d46c0333f4211d104f77442db0 (diff) | |
download | u-boot-imx-1d28d48e3df65ef867395eb84ee0498f1c52a384.zip u-boot-imx-1d28d48e3df65ef867395eb84ee0498f1c52a384.tar.gz u-boot-imx-1d28d48e3df65ef867395eb84ee0498f1c52a384.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'board/sbc8560/sbc8560.c')
-rw-r--r-- | board/sbc8560/sbc8560.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/board/sbc8560/sbc8560.c b/board/sbc8560/sbc8560.c index 2946ca1..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); @@ -421,7 +423,11 @@ long int fixed_sdram (void) #ifndef CFG_RAMBOOT volatile ccsr_ddr_t *ddr= (void *)(CFG_MPC85xx_DDR_ADDR); +#if (CFG_SDRAM_SIZE == 512) + ddr->cs0_bnds = 0x0000000f; +#else ddr->cs0_bnds = 0x00000007; +#endif ddr->cs1_bnds = 0x0010001f; ddr->cs2_bnds = 0x00000000; ddr->cs3_bnds = 0x00000000; @@ -452,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 |