From: Luis Araneda <luaraneda@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/4] drivers/misc: add options to read MAC address from EEPROM
Date: Mon, 9 Jul 2018 01:00:03 -0400 [thread overview]
Message-ID: <20180709050006.30056-2-luaraneda@gmail.com> (raw)
In-Reply-To: <20180709050006.30056-1-luaraneda@gmail.com>
Add generic kconfig options to read MAC address(es) from an EEPROM
connected to an I2C bus
The SYS_I2C_EEPROM_* options can't be used because they depend
on I2C_EEPROM, which requires a DM driver, and not all boards
have DM I2C drivers yet
Signed-off-by: Luis Araneda <luaraneda@gmail.com>
---
drivers/misc/Kconfig | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 17b3a805a2..ff694871bf 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -272,6 +272,32 @@ config SYS_I2C_EEPROM_ADDR_OVERFLOW
endif
+config MAC_ADDR_IN_I2C_EEPROM
+ bool "MAC address in I2C EEPROM"
+ help
+ Read MAC address(es) from an EEPROM
+ connected to an I2C bus
+
+if MAC_ADDR_IN_I2C_EEPROM
+
+config MAC_ADDR_I2C_EEPROM_BUS
+ int "I2C bus connected to the EEPROM device"
+ default 0
+
+config MAC_ADDR_I2C_EEPROM_CHIP_ADDR
+ hex "Chip address of the EEPROM device"
+ default 0
+
+config MAC_ADDR_I2C_EEPROM_DATA_ADDR_LEN
+ int "Length in bytes of EEPROM data addresses"
+ default 1
+
+config MAC_ADDR_I2C_EEPROM_DATA_ADDR_START
+ hex "Start address of MAC data in EEPROM"
+ default 0
+
+endif
+
config GDSYS_RXAUI_CTRL
bool "Enable gdsys RXAUI control driver"
depends on MISC
--
2.18.0
next prev parent reply other threads:[~2018-07-09 5:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-09 5:00 [U-Boot] [PATCH 0/4] arm: zynq: migrate to DM I2C driver Luis Araneda
2018-07-09 5:00 ` Luis Araneda [this message]
2018-07-09 5:00 ` [U-Boot] [PATCH 2/4] arm: zynq: migrate EEPROM MAC address options to kconfig Luis Araneda
2018-07-09 5:00 ` [U-Boot] [PATCH 3/4] arm64: zynqmp: " Luis Araneda
2018-07-09 5:00 ` [U-Boot] [PATCH 4/4] arm: zynq: use i2c cadence DM driver Luis Araneda
2018-07-20 10:57 ` Michal Simek
2018-07-21 7:20 ` Luis Araneda
2018-07-19 7:28 ` [U-Boot] [PATCH 0/4] arm: zynq: migrate to DM I2C driver Michal Simek
2018-07-20 6:12 ` Luis Araneda
2018-07-20 11:09 ` Michal Simek
2018-07-21 6:14 ` Luis Araneda
2018-08-17 13:31 ` Olliver Schinagl
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=20180709050006.30056-2-luaraneda@gmail.com \
--to=luaraneda@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox