From patchwork Mon May 9 06:13:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lokesh Vutla X-Patchwork-Id: 619724 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 3r3Byz6rQrz9t42 for ; Mon, 9 May 2016 16:18:35 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9D334A7672; Mon, 9 May 2016 08:18:33 +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 bOpb8hpJrYRS; Mon, 9 May 2016 08:18:33 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8F5BCA763F; Mon, 9 May 2016 08:18:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8854CA74C5 for ; Mon, 9 May 2016 08:17:54 +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 1faOrxHYSH75 for ; Mon, 9 May 2016 08:17:54 +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 bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by theia.denx.de (Postfix) with ESMTPS id 1B7EAA7498 for ; Mon, 9 May 2016 08:17:51 +0200 (CEST) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id u496Hm3h013243; Mon, 9 May 2016 01:17:48 -0500 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id u496HmPU024670; Mon, 9 May 2016 01:17:48 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.224.2; Mon, 9 May 2016 01:17:48 -0500 Received: from a0131933.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id u496HfLR028966; Mon, 9 May 2016 01:17:46 -0500 From: Lokesh Vutla To: , Date: Mon, 9 May 2016 11:43:27 +0530 Message-ID: <1462774410-6631-3-git-send-email-lokeshvutla@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1462774410-6631-1-git-send-email-lokeshvutla@ti.com> References: <1462774410-6631-1-git-send-email-lokeshvutla@ti.com> MIME-Version: 1.0 Cc: Tero Kristo , Sekhar Nori Subject: [U-Boot] [PATCH 2/5] board: am57xx: fit: add support for selecting dtb dynamically 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" FIT allows for a multiple dtb in a single image. SPL needs away to detect the right dtb to be used. Adding support for the same for am57xx platforms. Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini --- board/ti/am57xx/board.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c index 86b8f6e..444e5fa 100644 --- a/board/ti/am57xx/board.c +++ b/board/ti/am57xx/board.c @@ -686,3 +686,15 @@ int board_early_init_f(void) return 0; } #endif + +#ifdef CONFIG_SPL_LOAD_FIT +int board_fit_config_name_match(const char *name) +{ + if (board_is_x15() && !strcmp(name, "am57xx-beagle-x15")) + return 0; + else if (board_is_am572x_evm() && !strcmp(name, "am57xx-beagle-x15")) + return 0; + else + return -1; +} +#endif