From patchwork Sun Jan 17 03:16:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ladislav Michl X-Patchwork-Id: 569215 X-Patchwork-Delegate: hs@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 04A5514032F for ; Sun, 17 Jan 2016 14:17:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5DDC6A77F0; Sun, 17 Jan 2016 04:17:01 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 85FmQf6WW6aN; Sun, 17 Jan 2016 04:17:01 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B1094A756B; Sun, 17 Jan 2016 04:17:00 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 72C7BA756B for ; Sun, 17 Jan 2016 04:16:58 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TmlRbifzhiS1 for ; Sun, 17 Jan 2016 04:16:58 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from cvs.linux-mips.org (eddie.linux-mips.org [148.251.95.138]) by theia.denx.de (Postfix) with ESMTP id 3BA68A7553 for ; Sun, 17 Jan 2016 04:16:55 +0100 (CET) Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S27006150AbcAQDQz2xMKD (ORCPT ); Sun, 17 Jan 2016 04:16:55 +0100 Date: Sun, 17 Jan 2016 04:16:50 +0100 From: Ladislav Michl To: u-boot@lists.denx.de Message-ID: <20160117031650.GH28493@localhost.localdomain> References: <20160117030929.GA28493@localhost.localdomain> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20160117030929.GA28493@localhost.localdomain> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Scott Wood , Tom Rini , Richard Weinberger Subject: [U-Boot] [PATCHv4 7/7] igep00x0: Falcon mode X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Implement spl_start_uboot to let Falcon mode work. Signed-off-by: Ladislav Michl Reviewed-by: Heiko Schocher Acked-by: Enric Balletbo i Serra --- board/isee/igep00x0/igep00x0.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/board/isee/igep00x0/igep00x0.c b/board/isee/igep00x0/igep00x0.c index e2fce50..92811d8 100644 --- a/board/isee/igep00x0/igep00x0.c +++ b/board/isee/igep00x0/igep00x0.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -212,3 +213,14 @@ 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; +} +#endif