From: Ladislav Michl <ladis@linux-mips.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] igep00x0: Falcon mode
Date: Thu, 14 Jan 2016 01:44:20 +0100 [thread overview]
Message-ID: <20160114004419.GA27887@localhost.localdomain> (raw)
Implement spl_start_uboot to let Falcon mode work. Also as board comes
either with 256 or 512MB of memory, fixup fdt before jumping to kernel.
ATAG support for doing the same is left as an excercise for readers
loving legacy stuff.
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
board/isee/igep00x0/igep00x0.c | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/board/isee/igep00x0/igep00x0.c b/board/isee/igep00x0/igep00x0.c
index e2fce50..b25716a 100644
--- a/board/isee/igep00x0/igep00x0.c
+++ b/board/isee/igep00x0/igep00x0.c
@@ -10,6 +10,8 @@
#include <ns16550.h>
#include <twl4030.h>
#include <netdev.h>
+#include <spl.h>
+#include <fdt_support.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <asm/arch/mem.h>
@@ -212,3 +214,26 @@ int board_eth_init(bd_t *bis)
#endif
}
#endif
+
+#ifdef CONFIG_SPL_OS_BOOT
+int spl_start_uboot(void)
+{
+ /* break into full u-boot on 'c' */
+ if (serial_tstc() && serial_getc() == 'c')
+ return 1;
+
+ return 0;
+}
+
+void spl_board_prepare_for_linux(void)
+{
+ /* SPL initializes only first bank by default, so init both */
+ dram_init();
+#ifdef CONFIG_SPL_OF_TRANSLATE
+ /* Verify that ARGS is device tree blob and fixup memory node */
+ if (fdt_check_header((const void *)CONFIG_SYS_SPL_ARGS_ADDR) == 0)
+ fdt_fixup_memory((void *)CONFIG_SYS_SPL_ARGS_ADDR,
+ PHYS_SDRAM_1, gd->ram_size);
+#endif
+}
+#endif
--
2.1.4
next reply other threads:[~2016-01-14 0:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-14 0:44 Ladislav Michl [this message]
2016-01-14 17:10 ` [U-Boot] [PATCH] igep00x0: Falcon mode Tom Rini
2016-01-15 13:12 ` Ladislav Michl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160114004419.GA27887@localhost.localdomain \
--to=ladis@linux-mips.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox