spi: Add booting from flash to litedram init
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 10 Jun 2020 03:35:18 +0000 (13:35 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 13 Jun 2020 01:36:43 +0000 (11:36 +1000)
commit6aadad5a75e63b26d5e3f024c8191af46085b1b5
treefa6da686f390084bcee3ffb09bf006b4de27def7
parenta89e1469ef9eaee0a85cf48731dd3a3aa102dea0
spi: Add booting from flash to litedram init

It will look for an ELF binary at the flash offset specified
for the board (currently 0x300000 on Arty but that could be
changed).

Note: litedram is regenerated in order to rebuild the init code,
which was done using a newer version of litedram from LiteX.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
include/microwatt_soc.h
litedram/gen-src/sdram_init/head.S
litedram/gen-src/sdram_init/include/elf64.h [new file with mode: 0644]
litedram/gen-src/sdram_init/include/elf_common.h [new file with mode: 0644]
litedram/gen-src/sdram_init/main.c
litedram/generated/arty/litedram_core.init
litedram/generated/arty/litedram_core.v
litedram/generated/nexys-video/litedram_core.init
litedram/generated/nexys-video/litedram_core.v
litedram/generated/sim/litedram_core.init
litedram/generated/sim/litedram_core.v