All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Guinot <simon@sequanux.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] netspace_v2: enable I2C EEPROM support
Date: Mon, 31 Oct 2011 14:58:35 +0100	[thread overview]
Message-ID: <1320069516-2105-3-git-send-email-simon@sequanux.org> (raw)
In-Reply-To: <1320069516-2105-1-git-send-email-simon@sequanux.org>

From: Simon Guinot <simon.guinot@sequanux.org>

An I2C EEPROM HT24LC04 (512B) is available on the netspace_v2 board
(and parents). This EEPROM hold data such as Ethernet MAC addresses
and power flags.

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
---
 include/configs/netspace_v2.h |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/include/configs/netspace_v2.h b/include/configs/netspace_v2.h
index 5790602..bb27ed7 100644
--- a/include/configs/netspace_v2.h
+++ b/include/configs/netspace_v2.h
@@ -108,6 +108,17 @@
 #define CONFIG_KIRKWOOD_GPIO
 
 /*
+ * Enable I2C support
+ */
+#ifdef CONFIG_CMD_I2C
+/* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */
+#define CONFIG_CMD_EEPROM
+#define CONFIG_SYS_I2C_EEPROM_ADDR		0x50
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS	4 /* 16-byte page size */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN		1 /* 8-bit device address */
+#endif /* CONFIG_CMD_I2C */
+
+/*
  * File systems support
  */
 #define CONFIG_CMD_EXT2
-- 
1.7.5.1

  parent reply	other threads:[~2011-10-31 13:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-31 13:58 [U-Boot] [PATCH 0/3] netspace_v2: fixes and features Simon Guinot
2011-10-31 13:58 ` [U-Boot] [PATCH 1/3] netspace_v2: fix SDRAM configuration Simon Guinot
2011-11-01  7:36   ` Prafulla Wadaskar
2011-10-31 13:58 ` Simon Guinot [this message]
2011-11-01  7:36   ` [U-Boot] [PATCH 2/3] netspace_v2: enable I2C EEPROM support Prafulla Wadaskar
2011-10-31 13:58 ` [U-Boot] [PATCH 3/3] netspace_v2: Read Ethernet MAC address from EEPROM Simon Guinot
2011-11-05 12:29   ` Simon Guinot
2011-11-08  8:28     ` Prafulla Wadaskar
2011-11-08 21:31       ` [U-Boot] [PATCH v2] " Simon Guinot
2011-11-16 10:32         ` Simon Guinot
2011-11-16 12:25           ` Prafulla Wadaskar
2011-11-21 10:34           ` Prafulla Wadaskar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1320069516-2105-3-git-send-email-simon@sequanux.org \
    --to=simon@sequanux.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.