bios/boot: review/fix #503.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 13 May 2020 06:44:17 +0000 (08:44 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 13 May 2020 06:44:17 +0000 (08:44 +0200)
- copy_image_from_flash_to_ram is now used by all CPUs.
- copy_image_from_flash_to_ram already show the flash address, no need to duplicate it.

litex/soc/software/bios/boot.c

index c2fa449244ba98ff5e0f27a92dfd7acb6e63adfe..795b7b3a9830aa96c2ef2e2a0e2a0227c5327914 100644 (file)
@@ -399,7 +399,7 @@ static unsigned int check_image_in_flash(unsigned int base_address)
        return length;
 }
 
-#if defined(MAIN_RAM_BASE) && defined(CONFIG_CPU_TYPE_VEXRISCV) && defined(FLASH_BOOT_ADDRESS)
+#if defined(MAIN_RAM_BASE) && defined(FLASH_BOOT_ADDRESS)
 static int copy_image_from_flash_to_ram(unsigned int flash_address, unsigned int ram_address)
 {
        unsigned int length;
@@ -469,7 +469,7 @@ void flashboot(void)
        }
 #endif
 
-       printf("Booting from flash addr 0x%08x...\n", FLASH_BOOT_ADDRESS);
+       printf("Booting from flash...\n");
        length = check_image_in_flash(FLASH_BOOT_ADDRESS);
        if(!length)
                return;