]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: ti: ks2_evm: Over ride spl_get_load_buffer function
authorKeerthy <j-keerthy@ti.com>
Tue, 27 Nov 2018 12:22:41 +0000 (17:52 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 7 Dec 2018 04:26:32 +0000 (23:26 -0500)
commit3b074fb22b8f09178200b969395fa9f3d97a67e6
treec828d132f37ed095b33d606b0abdbb6cb7ad69a2
parent291da96b8e11d015d7725747bb8da677dcf01006
board: ti: ks2_evm: Over ride spl_get_load_buffer function

Currently k2 spi boot is broken as the image header
is getting copied to an invalid memory location

CONFIG_SYS_TEXT_BASE - sizeof (struct image_size)
which maps to 0xc000000 - 0x40 = 0xbffffc0 being a reserved
location.

We cannot change the CONFIG_SYS_TEXT_BASE address as the single
stage boots like UART boot will need the address to be 0xc000000
hence override the spl_get_load_buffer to have image_header
address as CONFIG_SYS_TEXT_BASE aka 0xc000000

Signed-off-by: Keerthy <j-keerthy@ti.com>
board/ti/ks2_evm/board.c