]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: stm32f7: add kernel boot support
authorVikas Manocha <vikas.manocha@st.com>
Sun, 28 May 2017 19:55:13 +0000 (12:55 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 9 Jun 2017 15:24:00 +0000 (11:24 -0400)
Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
arch/arm/mach-stm32/Kconfig
board/st/stm32f746-disco/stm32f746-disco.c
include/configs/stm32f746-disco.h

index a3390d0bfd4aa915824abd1fd04d785bc1c200c3..101089d67d6dd35bc36fc98efd92ddc3384df477 100644 (file)
@@ -21,6 +21,7 @@ config STM32F7
        select SPL_OF_CONTROL
        select SPL_OF_LIBFDT
        select SPL_OF_TRANSLATE
+       select SPL_OS_BOOT
        select SPL_PINCTRL
        select SPL_RAM
        select SPL_SERIAL_SUPPORT
index 87fa5eb48e27e6779eb8b69ea9c23ffc77cbe376..2bb0f02c9683302924da19ddc7270b4635b3966d 100644 (file)
@@ -91,6 +91,15 @@ int board_early_init_f(void)
 #endif
 
 #ifdef CONFIG_SPL_BUILD
+#ifdef CONFIG_SPL_OS_BOOT
+int spl_start_uboot(void)
+{
+       debug("SPL: booting kernel\n");
+       /* break into full u-boot on 'c' */
+       return serial_tstc() && serial_getc() == 'c';
+}
+#endif
+
 int spl_dram_init(void)
 {
        struct udevice *dev;
index 055fdf8ef01d5f009754834b11bc2089f8aa7f32..905202597aa083727b4e4a9d9928095293201a82 100644 (file)
 #define CONFIG_SYS_UBOOT_START         0XC00003FD
 #define CONFIG_SYS_UBOOT_BASE          (CONFIG_SYS_FLASH_BASE + \
                                         CONFIG_SYS_SPL_LEN)
+
+#define CONFIG_SYS_OS_BASE             0x08040000
+/* DT blob (fdt) address */
+#define CONFIG_SYS_SPL_ARGS_ADDR        0xC0000100
+#define CONFIG_SYS_FDT_BASE            (CONFIG_SYS_FLASH_BASE + \
+                                       0x1C0000)
+#define CONFIG_SYS_FDT_SIZE            (20*1024)
 #endif
 /* For SPL ends */