From patchwork Sun Sep 18 19:44:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 671449 X-Patchwork-Delegate: trini@ti.com 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 3scfds0Rnsz9srZ for ; Mon, 19 Sep 2016 05:46:09 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=UJ5GaAq9; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EBB9AA75EE; Sun, 18 Sep 2016 21:46:03 +0200 (CEST) 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 25JlLH4fnCcw; Sun, 18 Sep 2016 21:46:03 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2A6E4A7560; Sun, 18 Sep 2016 21:45:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 707E14B98A for ; Sun, 18 Sep 2016 21:45:44 +0200 (CEST) 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 nIrv0FMEH9os for ; Sun, 18 Sep 2016 21:45:44 +0200 (CEST) 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 mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) by theia.denx.de (Postfix) with ESMTPS id 0C9BB4B979 for ; Sun, 18 Sep 2016 21:45:41 +0200 (CEST) Received: by mail-io0-f181.google.com with SMTP id q92so74286218ioi.1 for ; Sun, 18 Sep 2016 12:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=z1iAeE6TIg3+Ed7Pbifb3779Q/n5ql6UOmZmsA0jeNY=; b=UJ5GaAq9nCQ1Z5BFvY9o9Y84gy1pMUc85nsF42lKRqTLUzLSehBxNZavrKgyCeXKlY 9yC1OqB6LZCtPB83IK76qRV0ed5/X1L3T/XFp2KjzfqgHIzZpLTNMCEyfZgIw7gw9iW9 8g2gBpwjo44gM3pCyklbcNwbfxSATATOjZusNGNwKN4V7yBWJP3/TXoP8VMXHc5pWdAL /3vIgGyrWq0bT/dAUGKDfe9LycjO5s+OvRDtG78bpurz3CkD/AU+SM6OGc7ezTUPgQmL OBFIAwkAA6p8U2tD2dl9kTzaMKqlplJWJ9mBah0gD7taLPp46q2C1djdSXrcCQlPP5U4 JAFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=z1iAeE6TIg3+Ed7Pbifb3779Q/n5ql6UOmZmsA0jeNY=; b=MT2X93IJLUsWaUVH86MRhuwarcbWEOukwo/SFw/AE5G5/ema4iyy/NYACBnCQMOFGI DUye87QOrAKr8Gzwxk4zzYZvQs53j+HD0Qxs4xmTXQh2oYHjp1CylVx5FYUpyCi6/Zlv D3uQMJSOfs+APoJaqW6czT8KmNlpjX0g4K+k8zlryeCYsznB9P5Irw9CNizO2nlYZt7J cVRohd8S/9rN0QNwkZXEBGSPX8vcpQBOIC8VSq48fby+JC+6u+2O2yt/eRHauyPTRJh2 uiB/x7RRTwzN8VjRMTB7aBjMKDqH384VlmEM1hfTX5qP6J4sRjLuo129YmKfB1LZuNli vepg== X-Gm-Message-State: AE9vXwMZe1PHh2PrEjKrGHZ9Zf2hGvxXbEnetFU3yKUZ/iz/RcaF/McjXH6pneF8Jisf/YGr X-Received: by 10.107.44.3 with SMTP id s3mr34638798ios.115.1474227939668; Sun, 18 Sep 2016 12:45:39 -0700 (PDT) Received: from kaki.bld.corp.google.com ([2620:0:1005:12:a8cd:9b9d:5e51:8ca7]) by smtp.gmail.com with ESMTPSA id q103sm7692209ioi.9.2016.09.18.12.45.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Sep 2016 12:45:38 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 89BFC221A11; Sun, 18 Sep 2016 13:45:37 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Sun, 18 Sep 2016 13:44:54 -0600 Message-Id: <1474227917-9256-6-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1474227917-9256-1-git-send-email-sjg@chromium.org> References: <1474227917-9256-1-git-send-email-sjg@chromium.org> Cc: Marek Vasut , Tom Rini , Stephen Warren Subject: [U-Boot] [PATCH 05/27] spl: Add function comments to spl_start_uboot() 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add some comments to describe this function. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- include/spl.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/spl.h b/include/spl.h index aebafa3..742e6c2 100644 --- a/include/spl.h +++ b/include/spl.h @@ -110,7 +110,18 @@ int spl_board_ubi_load_image(u32 boot_device); */ void __noreturn jump_to_image_linux(struct spl_image_info *spl_image, void *arg); + +/** + * spl_start_uboot() - Check if SPL should start the kernel or U-Boot + * + * This is called by the various SPL loaders to determine whether the board + * wants to load the kernel or U-Boot. This function should be provided by + * the board. + * + * @return 0 if SPL should start the kernel, 1 if U-Boot must be started + */ int spl_start_uboot(void); + void spl_display_print(void); /* NAND SPL functions */