]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/atmel/sama5d3xek/sama5d3xek.c
arm: atmel: sama5d3: add spi spl boot support
[karo-tx-uboot.git] / board / atmel / sama5d3xek / sama5d3xek.c
index 0ab802012668cae3d54e645224f1f028ce51be8a..8a214de475a11d5b10eddfd5de144961caaaa643 100644 (file)
@@ -134,7 +134,8 @@ static void sama5d3xek_lcd_hw_init(void)
 
 void lcd_show_board_info(void)
 {
-       ulong dram_size, nand_size;
+       ulong dram_size;
+       uint64_t nand_size;
        int i;
        char temp[32];
 
@@ -153,7 +154,7 @@ void lcd_show_board_info(void)
        for (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++)
                nand_size += nand_info[i].size;
 #endif
-       lcd_printf("%ld MB SDRAM, %ld MB NAND\n",
+       lcd_printf("%ld MB SDRAM, %lld MB NAND\n",
                   dram_size >> 20, nand_size >> 20);
 }
 #endif /* CONFIG_LCD_INFO */
@@ -306,6 +307,8 @@ void spl_board_init(void)
 {
 #ifdef CONFIG_SYS_USE_MMC
        sama5d3xek_mci_hw_init();
+#elif CONFIG_SYS_USE_SERIALFLASH
+       at91_spi0_hw_init(1 << 0);
 #endif
 }