X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fsyteco%2Fjadecpu%2Fjadecpu.c;h=72288fe4e810627453528d6818ca32999f1696b8;hb=686e14488e04564c3760145a35d03c7ffecb0f58;hp=04d2f9d5a66539f500c499d7064c7fdb82298a6e;hpb=09b4a9cf4003599f2cd609587dfa5f0b754640ed;p=u-boot diff --git a/board/syteco/jadecpu/jadecpu.c b/board/syteco/jadecpu/jadecpu.c index 04d2f9d5a6..72288fe4e8 100644 --- a/board/syteco/jadecpu/jadecpu.c +++ b/board/syteco/jadecpu/jadecpu.c @@ -40,10 +40,10 @@ int board_init(void) writel(0x00000010, &ccnt->cmux_md); gd->flags = 0; - gd->bd->bi_arch_number = MACH_TYPE_JADECPU; gd->bd->bi_boot_params = PHYS_SDRAM + PHYS_SDRAM_SIZE - 0x10000; icache_enable(); + dcache_enable(); return 0; } @@ -125,9 +125,6 @@ int board_late_init(void) setenv("preboot", "run gs_slow_boot"); } else if ((in_word & 0xC0) != 0) { setenv("stdout", "vga"); - setenv("gs_bootcmd", "mw.l 0x40000000 0 1024; usb start;" - "fatls usb 0; fatload usb 0 0x40000000 mcq5resq.bin;" - "bootelf 0x40000000; bootelf 0x10080000"); setenv("preboot", "run gs_slow_boot"); } else { setenv("stdin", "serial"); @@ -136,7 +133,6 @@ int board_late_init(void) if (getenv("gs_devel")) { setenv("preboot", "run gs_slow_boot"); } else { - setenv("gs_bootcmd", "bootelf 0x10080000"); setenv("preboot", "run gs_fast_boot"); } } @@ -154,12 +150,19 @@ int misc_init_r(void) */ int dram_init(void) { - gd->bd->bi_dram[0].start = PHYS_SDRAM; - gd->bd->bi_dram[0].size = PHYS_SDRAM_SIZE; + /* dram_init must store complete ramsize in gd->ram_size */ + gd->ram_size = get_ram_size((void *)PHYS_SDRAM, + PHYS_SDRAM_SIZE); return 0; } +void dram_init_banksize(void) +{ + gd->bd->bi_dram[0].start = PHYS_SDRAM; + gd->bd->bi_dram[0].size = gd->ram_size; +} + int board_eth_init(bd_t *bis) { int rc = 0;