From patchwork Fri Jan 3 10:11:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 3431021 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C90109F295 for ; Fri, 3 Jan 2014 10:50:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E7DDB20127 for ; Fri, 3 Jan 2014 10:50:54 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BF2AE20122 for ; Fri, 3 Jan 2014 10:50:53 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vz1mG-00083J-Rq; Fri, 03 Jan 2014 10:14:54 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vz1lK-0003SP-Vk; Fri, 03 Jan 2014 10:13:55 +0000 Received: from mail-ee0-f50.google.com ([74.125.83.50]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vz1jn-0003EQ-A6 for linux-arm-kernel@lists.infradead.org; Fri, 03 Jan 2014 10:12:20 +0000 Received: by mail-ee0-f50.google.com with SMTP id c41so6792495eek.9 for ; Fri, 03 Jan 2014 02:11:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references:content-type; bh=cRccs5UPP/soo+TSAPZDDqJyjh1IZP1cWwqZYBu2NM4=; b=a75gwHzuSwjRo6Ad73yGOoMket5b33KAV8wIt1eficEvSeDS9dqsJKWEaFZKN71ON4 6NKpvlRyjtEfKd0IS/9sw6c+t/vjZVCHC6kGHsa76uSYXfCjVFxAbMun/Tw68VIh2ku8 MjGL1Fen9ARJZnnA51semoCM/AqzKWd+jtFFkXxX/VktPy+ayPFf/UP8dt2OZwQV6g+D +ucyCFUdJDZJ1Jan1sYw/YF5VzRGfArFLqqwQtzPDH1jXZN8ZOPqaFFYa4dLkoNg408b CbV/Po1AOYX4RnjegX7iubnnXZ1VPCnOR1aIjI7YzqDtK8Kbewu6aaDZcXNk6WxqfzNq In0A== X-Gm-Message-State: ALoCoQmL1VwdJuZq9Y8IrbjbTsY6gDwkTcGcEhedURg5aKJMNQ73nDSZBsHjpvFwOmLLFoIJNJSg X-Received: by 10.14.5.12 with SMTP id 12mr73822601eek.9.1388743918178; Fri, 03 Jan 2014 02:11:58 -0800 (PST) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id e3sm143614917eeg.11.2014.01.03.02.11.56 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Fri, 03 Jan 2014 02:11:56 -0800 (PST) From: Michal Simek To: Michal Simek , u-boot@lists.denx.de, Joe Hershberger , linux-arm-kernel@lists.infradead.org, Albert Aribaud , Tom Rini Subject: [PATCH v1 16/24] zynq: Add Catalyst 24WC08 EEPROM config support Date: Fri, 3 Jan 2014 11:11:01 +0100 Message-Id: X-Mailer: git-send-email 1.8.2.3 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140103_051219_546011_B252E7E1 X-CRM114-Status: GOOD ( 11.88 ) X-Spam-Score: -1.9 (-) Cc: Jagannadha Sutradharudu Teki X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jagannadha Sutradharudu Teki Adds configurations for Catalyst 24WC08 EEPROM, which is present on the zynq boards. Enable EEPROM support for zynq boards. Signed-off-by: Jagannadha Sutradharudu Teki Signed-off-by: Michal Simek --- Changes in v1: None include/configs/zynq.h | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 1.8.2.3 diff --git a/include/configs/zynq.h b/include/configs/zynq.h index c90d4fd..2ea5d3f 100644 --- a/include/configs/zynq.h +++ b/include/configs/zynq.h @@ -89,6 +89,17 @@ # define CONFIG_SYS_I2C_ZYNQ_SLAVE 1 #endif +#define CONFIG_ZYNQ_EEPROM +/* EEPROM */ +#ifdef CONFIG_ZYNQ_EEPROM +# define CONFIG_CMD_EEPROM +# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 +# define CONFIG_SYS_I2C_EEPROM_ADDR 0x54 +# define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4 +# define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5 +# define CONFIG_SYS_EEPROM_SIZE 1024 /* Bytes */ +#endif + #define CONFIG_BOOTP_SERVERIP #define CONFIG_BOOTP_BOOTPATH #define CONFIG_BOOTP_GATEWAY