From patchwork Wed Nov 23 07:55:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lokesh Vutla X-Patchwork-Id: 698086 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 3tNvn96zYLz9srZ for ; Wed, 23 Nov 2016 18:57:01 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 22720A756F; Wed, 23 Nov 2016 08:56:55 +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 KxFxA1MAW_ES; Wed, 23 Nov 2016 08:56:55 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 482E94BA29; Wed, 23 Nov 2016 08:56:50 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 932F34B98B for ; Wed, 23 Nov 2016 08:56:46 +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 BcAxc5XhOzn8 for ; Wed, 23 Nov 2016 08:56:46 +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 lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by theia.denx.de (Postfix) with ESMTPS id 274E54B660 for ; Wed, 23 Nov 2016 08:56:42 +0100 (CET) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id uAN7ueSS004030; Wed, 23 Nov 2016 01:56:40 -0600 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id uAN7uebB029279; Wed, 23 Nov 2016 01:56:40 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Wed, 23 Nov 2016 01:56:40 -0600 Received: from a0131933.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id uAN7uW1J015899; Wed, 23 Nov 2016 01:56:37 -0600 From: Lokesh Vutla To: Tom Rini , Date: Wed, 23 Nov 2016 13:25:24 +0530 Message-ID: <20161123075534.1124-2-lokeshvutla@ti.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161123075534.1124-1-lokeshvutla@ti.com> References: <20161123075534.1124-1-lokeshvutla@ti.com> MIME-Version: 1.0 Cc: Tero Kristo Subject: [U-Boot] [PATCH 01/11] board: ti: dra71x-evm: Add epprom support 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" The dra71x-evm is a board based on TI's DRA718 processor targeting BOM-optimized entry infotainment systems such as display audio and is a software compatible derivative of the highly successful DRA74 and DRA72 processor families. More information can be found here[1]. Add epprom detection for dra71-evm. [1] http://www.ti.com/product/dra718 Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini --- board/ti/dra7xx/evm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index e0470e9..73d99ae 100644 --- a/board/ti/dra7xx/evm.c +++ b/board/ti/dra7xx/evm.c @@ -36,6 +36,7 @@ #define board_is_dra74x_evm() board_ti_is("5777xCPU") #define board_is_dra72x_evm() board_ti_is("DRA72x-T") +#define board_is_dra71x_evm() board_ti_is("DRA79x,D") #define board_is_dra74x_revh_or_later() (board_is_dra74x_evm() && \ (strncmp("H", board_ti_get_rev(), 1) <= 0)) #define board_is_dra72x_revc_or_later() (board_is_dra72x_evm() && \ @@ -469,6 +470,8 @@ int board_late_init(void) if (is_dra72x()) { if (board_is_dra72x_revc_or_later()) name = "dra72x-revc"; + else if (board_is_dra71x_evm()) + name = "dra71x"; else name = "dra72x"; } else { @@ -509,6 +512,8 @@ void do_board_detect(void) bname = "DRA74x EVM"; } else if (board_is_dra72x_evm()) { bname = "DRA72x EVM"; + } else if (board_is_dra71x_evm()) { + bname = "DRA71x EVM"; } else { /* If EEPROM is not populated */ if (is_dra72x())