summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorVikas Manocha <vikas.manocha@st.com>2017-05-28 19:55:14 (GMT)
committerTom Rini <trini@konsulko.com>2017-06-09 15:24:00 (GMT)
commit1a73bd842e5181ef82d59df0bf4770c6405deaa5 (patch)
tree29581f43c8e54aed71f1f2df70114e46fb8cea7c /board
parent55a3ef714f9867a9b2e18851cfdca906698e8c2f (diff)
downloadu-boot-1a73bd842e5181ef82d59df0bf4770c6405deaa5.tar.xz
spl: stm32f7: configure for xip booting
With xip booting configuration, we don't need to copy the next image (U-Boot or linux xipimage) from flash to sdram area. Flash memory organization is like this: spl-U-Boot: u-boot-spl.bin : 0x0800_0000 U-Boot : u-boot-dtb.bin : 0x0800_8000 linux : xipImage : 0x0800_8000 It is also possible to have U-Boot binary & linux binaries configured at different addresses of flash memory like U-Boot at 0x0800_8000 & linux xipImage at 0x0800_4000. But in any case, spl-U-Boot needs to be compiled for U-Boot as next binary with SPL_OS_BOOT option disabled. By default, spl is configured to boot linux xipImage. Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
Diffstat (limited to 'board')
-rw-r--r--board/st/stm32f746-disco/stm32f746-disco.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c
index 2bb0f02..fc4c60c 100644
--- a/board/st/stm32f746-disco/stm32f746-disco.c
+++ b/board/st/stm32f746-disco/stm32f746-disco.c
@@ -117,7 +117,7 @@ void spl_board_init(void)
}
u32 spl_boot_device(void)
{
- return BOOT_DEVICE_NOR;
+ return BOOT_DEVICE_XIP;
}
#endif