From patchwork Tue Nov 10 13:17:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Lifshitz X-Patchwork-Id: 542279 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 83B2C141410 for ; Wed, 11 Nov 2015 00:18:29 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=compulab.co.il header.i=@compulab.co.il header.b=H+mgvkTY; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9DABE4B877; Tue, 10 Nov 2015 14:18:27 +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 rSpUNdgXIOLK; Tue, 10 Nov 2015 14:18:27 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 69F494B8A3; Tue, 10 Nov 2015 14:18:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 013DE4B6ED for ; Tue, 10 Nov 2015 14:18:21 +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 J35WeKv3Xhgs for ; Tue, 10 Nov 2015 14:18:20 +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 compulab.co.il (softlayer.compulab.co.il [50.23.254.55]) by theia.denx.de (Postfix) with ESMTPS id 130214B6B5 for ; Tue, 10 Nov 2015 14:18:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=compulab.co.il; s=default; h=References:In-Reply-To:Message-Id:Date:Subject :Cc:To:From; bh=QQ9hQhanc8snNCAipW3XL9FqTHZrtAMSa5Z1kL26AcY=; b=H+mgvkTYHT/kH QN0bzheM2INUNtA+n9U9UdY0yjTJ/33QmXv4WrWgnPgnoxkdjZxyXI6JOjOhzCJiyI3C0HjVz+qJC VbzHcXI9Wj/b1Q26Iwddr9evgRgUfjy0UmEoBs8rzp/55EfcWO80oQax+X07iNQ03AM2hP+Z9+bmQ TBbU=; Received: from [62.90.235.247] (port=48218 helo=zimbra-mta.compulab.co.il) by softlayer.compulab.co.il with esmtp (Exim 4.86) (envelope-from ) id 1Zw8oP-0007Tg-68; Tue, 10 Nov 2015 15:18:13 +0200 Received: from localhost (localhost [127.0.0.1]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id 3B706489FA9; Tue, 10 Nov 2015 15:18:12 +0200 (IST) Received: from zimbra-mta.compulab.co.il ([127.0.0.1]) by localhost (zimbra-mta.compulab.co.il [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 5Rs1xOlQDRTU; Tue, 10 Nov 2015 15:18:11 +0200 (IST) Received: from localhost (localhost [127.0.0.1]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id AA21C489FA8; Tue, 10 Nov 2015 15:18:11 +0200 (IST) X-Virus-Scanned: amavisd-new at zimbra-mta.compulab.co.il Received: from zimbra-mta.compulab.co.il ([127.0.0.1]) by localhost (zimbra-mta.compulab.co.il [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dXm9cAlyJNlM; Tue, 10 Nov 2015 15:18:11 +0200 (IST) Received: from dlifshitz.compulab.local (lifshitz-linux.compulab.local [192.168.11.10]) by zimbra-mta.compulab.co.il (Postfix) with ESMTPSA id 8BA50489FA6; Tue, 10 Nov 2015 15:18:11 +0200 (IST) From: Dmitry Lifshitz To: u-boot@lists.denx.de, Tom Rini Date: Tue, 10 Nov 2015 15:17:44 +0200 Message-Id: <1447161464-29638-1-git-send-email-lifshitz@compulab.co.il> X-Mailer: git-send-email 1.9.1 In-Reply-To: <5616B9DE.5030104@compulab.co.il> References: <5616B9DE.5030104@compulab.co.il> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - softlayer.compulab.co.il X-AntiAbuse: Original Domain - lists.denx.de X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - compulab.co.il X-Get-Message-Sender-Via: softlayer.compulab.co.il: acl_c_recent_authed_mail_ips_text_entry: lifshitz@compulab.co.il|compulab.co.il X-Authenticated-Sender: softlayer.compulab.co.il: lifshitz@compulab.co.il Subject: [U-Boot] [PATCH v2] omap3: cm-t3517: add board specific get_board_rev() 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" CM-T3517 has several HW revisions. Add board specific get_board_rev() callback to retrieve revision number. Signed-off-by: Dmitry Lifshitz Reviewed-by: Igor Grinberg --- Igor, Tom I forgot to add a mailing list address in send-email. Resending the patch. v2: Make proper use of cl_eeprom_get_board_rev() parameter. board/compulab/cm_t3517/cm_t3517.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/board/compulab/cm_t3517/cm_t3517.c b/board/compulab/cm_t3517/cm_t3517.c index d1c74db..8aae248 100644 --- a/board/compulab/cm_t3517/cm_t3517.c +++ b/board/compulab/cm_t3517/cm_t3517.c @@ -98,6 +98,15 @@ int board_init(void) return 0; } +/* + * Routine: get_board_rev + * Description: read system revision + */ +u32 get_board_rev(void) +{ + return cl_eeprom_get_board_rev(CONFIG_SYS_I2C_EEPROM_BUS); +}; + int misc_init_r(void) { cl_print_pcb_info();