From patchwork Mon May 16 05:41:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lokesh Vutla X-Patchwork-Id: 622461 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 3r7TwH2qr1z9t3l for ; Mon, 16 May 2016 15:46:07 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F21B0A7683; Mon, 16 May 2016 07:45:59 +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 C2zYBYUokGRy; Mon, 16 May 2016 07:45:59 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 76C58A751B; Mon, 16 May 2016 07:45:50 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 481ACA7534 for ; Mon, 16 May 2016 07:45:46 +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 RXedq0eqWbIH for ; Mon, 16 May 2016 07:45:46 +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 arroyo.ext.ti.com (arroyo.ext.ti.com [198.47.19.12]) by theia.denx.de (Postfix) with ESMTPS id BAF7AA751B for ; Mon, 16 May 2016 07:45:41 +0200 (CEST) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id u4G5jde1024525; Mon, 16 May 2016 00:45:39 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id u4G5jd0o016305; Mon, 16 May 2016 00:45:39 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.294.0; Mon, 16 May 2016 00:45:38 -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 u4G5jXMs029176; Mon, 16 May 2016 00:45:37 -0500 From: Lokesh Vutla To: , Date: Mon, 16 May 2016 11:11:15 +0530 Message-ID: <1463377279-32605-2-git-send-email-lokeshvutla@ti.com> X-Mailer: git-send-email 2.8.2 In-Reply-To: <1463377279-32605-1-git-send-email-lokeshvutla@ti.com> References: <1463377279-32605-1-git-send-email-lokeshvutla@ti.com> MIME-Version: 1.0 Cc: Tero Kristo , Sekhar Nori Subject: [U-Boot] [PATCH v2 1/5] board: AM43xx: 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 a way to detect the right dtb to be used. Adding support for the same. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- Changes since v1: - None board/ti/am43xx/board.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c index d208d2f..a0ede81 100644 --- a/board/ti/am43xx/board.c +++ b/board/ti/am43xx/board.c @@ -846,3 +846,15 @@ int board_eth_init(bd_t *bis) return rv; } #endif + +#ifdef CONFIG_SPL_LOAD_FIT +int board_fit_config_name_match(const char *name) +{ + if (board_is_gpevm() && !strcmp(name, "am437x-gp-evm")) + return 0; + else if (board_is_sk() && !strcmp(name, "am437x-sk-evm")) + return 0; + else + return -1; +} +#endif