From patchwork Sat Apr 16 14:55:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Kiryanov X-Patchwork-Id: 611370 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 3qnK0V5hYNz9t4h for ; Sun, 17 Apr 2016 02:01:46 +1000 (AEST) 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=PDrp7yQk; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 99C4BA7611; Sat, 16 Apr 2016 18:01:40 +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 lpJkdLi8ekHQ; Sat, 16 Apr 2016 18:01:40 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C91C6A7635; Sat, 16 Apr 2016 18:01:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 650DFA7620 for ; Sat, 16 Apr 2016 18:01:34 +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 9OtKmibNDxOT for ; Sat, 16 Apr 2016 18:01:34 +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 compulab.co.il (softlayer.compulab.co.il [50.23.254.55]) by theia.denx.de (Postfix) with ESMTPS id 0B5EBA7611 for ; Sat, 16 Apr 2016 18:01:31 +0200 (CEST) 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=2Ub9+SoT3a9WBIII3LHg7JE2C0Mqm/JBPw0Hh7l2Q68=; b=PDrp7yQkSxMTb lllDDLS2oi2ZVzpm5Hwuv9VSSiqbum2Uaimti1cGhdDX0M5PAL0+6z37BtWH6DWhdXPJXIQsTOQ4Q LlXXtbnoPn3IFUC0ct63kbiILsf+eWnQqrQM5NFdnD6W1cS6o4VzGzFmZH14p6FQrfIJSaEfgCDp8 u26g=; Received: from [62.90.235.247] (port=55947 helo=zimbra-mta.compulab.co.il) by softlayer.compulab.co.il with esmtp (Exim 4.86_1) (envelope-from ) id 1arRd5-0003Cf-IN; Sat, 16 Apr 2016 17:55:23 +0300 Received: from localhost (localhost [127.0.0.1]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id A9089482421; Sat, 16 Apr 2016 17:55:21 +0300 (IDT) 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 ByZWBZJ77O5Z; Sat, 16 Apr 2016 17:55:21 +0300 (IDT) Received: from localhost (localhost [127.0.0.1]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id DE083482416; Sat, 16 Apr 2016 17:55:20 +0300 (IDT) 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 e-DQK7B93L5l; Sat, 16 Apr 2016 17:55:20 +0300 (IDT) Received: from skynet.compulab.local (nikita-pc.compulab.local [192.168.11.211]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id B027748240F; Sat, 16 Apr 2016 17:55:20 +0300 (IDT) From: Nikita Kiryanov To: u-boot@lists.denx.de Date: Sat, 16 Apr 2016 17:55:09 +0300 Message-Id: <1460818513-24895-9-git-send-email-nikita@compulab.co.il> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1460818513-24895-1-git-send-email-nikita@compulab.co.il> References: <1460818513-24895-1-git-send-email-nikita@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: nikita@compulab.co.il|compulab.co.il X-Authenticated-Sender: softlayer.compulab.co.il: nikita@compulab.co.il Cc: Tom Rini Subject: [U-Boot] [PATCH 08/12] arm: cm-t35: add support for eeprom layout comands 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 support for EEPROM and EEPROM layout commands for CM-T35. Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- include/configs/cm_t35.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h index 3910b46..9496e24 100644 --- a/include/configs/cm_t35.h +++ b/include/configs/cm_t35.h @@ -372,4 +372,15 @@ #define CONFIG_SYS_SPL_MALLOC_START 0x80208000 #define CONFIG_SYS_SPL_MALLOC_SIZE 0x100000 +/* EEPROM */ +#define CONFIG_CMD_EEPROM +#define CONFIG_ENV_EEPROM_IS_ON_I2C +#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 +#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4 +#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5 +#define CONFIG_SYS_EEPROM_SIZE 256 + +#define CONFIG_CMD_EEPROM_LAYOUT +#define CONFIG_EEPROM_LAYOUT_HELP_STRING "legacy, v1, v2, v3" + #endif /* __CONFIG_H */