summaryrefslogtreecommitdiff
path: root/board/ti
diff options
context:
space:
mode:
authorPeter Korsgaard <peter.korsgaard@barco.com>2013-05-13 08:36:30 +0000
committerTom Rini <trini@ti.com>2013-06-07 14:17:01 -0400
commit12d7a474204a667a7f94e3904e5d4062e3115894 (patch)
treec9274049898a39589ada98b4e7a37638a993fc05 /board/ti
parent2b75b0ad3a2a47492a6d03199d85632f9ee3e42b (diff)
downloadu-boot-imx-12d7a474204a667a7f94e3904e5d4062e3115894.zip
u-boot-imx-12d7a474204a667a7f94e3904e5d4062e3115894.tar.gz
u-boot-imx-12d7a474204a667a7f94e3904e5d4062e3115894.tar.bz2
am335x: enable falcon boot mode for mmc (raw and fat) and nand
Jump into full u-boot mode if a 'c' character is received on the uart. We need to adjust the spl bss/malloc area to not overlap with the loadaddr of the kernel (sdram + 32k), so move it past u-boot instead. For raw mmc, we store the kernel parameter area in the free space after the MBR (if used). For nand, we use the last sector of the partition reserved for u-boot. This also enables the spl command in the full u-boot so the kernel parameter area snapshot can be created. Signed-off-by: Peter Korsgaard <peter.korsgaard@barco.com>
Diffstat (limited to 'board/ti')
-rw-r--r--board/ti/am335x/board.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index ebddf0c..73bf853 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -297,6 +297,15 @@ static struct emif_regs ddr3_evm_emif_reg_data = {
.emif_ddr_phy_ctlr_1 = MT41J512M8RH125_EMIF_READ_LATENCY |
PHY_EN_DYN_PWRDN,
};
+
+#ifdef CONFIG_SPL_OS_BOOT
+int spl_start_uboot(void)
+{
+ /* break into full u-boot on 'c' */
+ return (serial_tstc() && serial_getc() == 'c');
+}
+#endif
+
#endif
/*