public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] Davinci: Make MAC address offset in EEPROM configurable, CONFIG_MAC_EEPROM_ADDR
Date: Tue, 29 Jan 2013 15:31:46 -0500	[thread overview]
Message-ID: <510831B2.3030700@ti.com> (raw)
In-Reply-To: <b652ad9199975d1e37c8b9817bd4c0702a5fada7.1359443560.git.kibo@prevas.dk>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/29/2013 02:28 AM, Kim B?ndergaard wrote:
> --- arch/arm/cpu/arm926ejs/davinci/misc.c | 5 ++++- 1 file changed,
> 4 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/cpu/arm926ejs/davinci/misc.c
> b/arch/arm/cpu/arm926ejs/davinci/misc.c index c310c69..d0389a4
> 100644 --- a/arch/arm/cpu/arm926ejs/davinci/misc.c +++
> b/arch/arm/cpu/arm926ejs/davinci/misc.c @@ -55,11 +55,14 @@ void
> dram_init_banksize(void) * Read ethernet MAC address from EEPROM
> for DVEVM compatible boards. * Returns 1 if found, 0 otherwise. */ 
> +#ifndef CONFIG_MAC_EEPROM_ADDR +#define CONFIG_MAC_EEPROM_ADDR
> 0x7F00 +#endif int dvevm_read_mac_address(uint8_t *buf) { #ifdef
> CONFIG_SYS_I2C_EEPROM_ADDR /* Read MAC address. */ -	if
> (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, 0x7F00, +	if
> (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, CONFIG_MAC_EEPROM_ADDR, 
> CONFIG_SYS_I2C_EEPROM_ADDR_LEN, (uint8_t *) &buf[0], 6)) goto
> i2cerr;

Lets use CONFIG_SYS_I2C_EEPROM_MAC_OFFSET and just set it in all of
the davinci configs (yes, that's touching more files).  Thanks!

- -- 
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRCDGxAAoJENk4IS6UOR1WAXUP/1W8kLQrWCuIunb6SB2m1ef3
7I3i9hFpENqyX1agmQtXbqaxqUC3claLWrbzzIr/3Ddrwq9ZEmjRjgl0ZWnhYsUx
sryioGP+xMd6GXzVsCO59He1Qnb9x7n5NqActNdeC2gQvVV7H0ED/7tuYO97kXRV
hfUkuw6zZl/TSK4Sz7aNBkk0xCGkvcMVZbghjW+KdgmEJRp3QJOg8USUbypN9Osp
VDVDXPB/BZkALyX30/w1qTxMDXebq3yhkEAs6LypEVeq/2KOMRs6zrCLQfO2yL2t
sEaVFWPJMH8BJL+/Us8Ol4mV3PWkE1JaI7IDpPDYpZmmAdzA8kMb6xymTCa35+r8
KKCNYnHi/uVLzL6KilBAJGqRT6HSlsxwjO3WP4XHDaWlfL3IIITJg/es3NUIvDzF
GAgR3ORY/myZ4wWhlY5BKxVONvq08ZTG5wVvuxmSpBVpmXQrpXqGRR1Tjcg/rjP5
+bFsguseMxJnYuCmWz/DS/93/NRpIGLPd4lt+nGxgnWsWYA2iY7F8UCFhPB/gAse
NTkIMEf0L1eRJM88Ktl4KLsElHBPGAsa1nEkrDfrfUOlqTzHKnTp/c1jX+AUArLW
U0kOyTfS69quoJQmPbSC9f5QlnzSWKw7nUE36xryFgdMGXaxzXYyDbHj1b7jtI3Y
rA5AhaQw/jpeBBxcmfgB
=WlpG
-----END PGP SIGNATURE-----

  reply	other threads:[~2013-01-29 20:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-29  7:28 [U-Boot] [PATCH 0/2] Davinci: MAC address updates Kim Bøndergaard
2013-01-29  7:28 ` [U-Boot] [PATCH 1/2] Davinci: Make MAC address offset in EEPROM configurable, CONFIG_MAC_EEPROM_ADDR Kim Bøndergaard
2013-01-29 20:31   ` Tom Rini [this message]
     [not found]     ` <4014368E77617E44944113A4A656BD682856AAEB@VMPREVAS1.prevas.se>
2013-01-31 22:27       ` Tom Rini
2013-01-29  7:28 ` [U-Boot] [PATCH 2/2] Davinci: Fix, console output confusing while setting MAC address Kim Bøndergaard
  -- strict thread matches above, loose matches on Subject: below --
2013-01-22 13:19 [U-Boot] [PATCH 0/2] Davinci, MAC addr improvements Kim Bøndergaard
2013-01-22 13:19 ` [U-Boot] [PATCH 1/2] Davinci: Make MAC address offset in EEPROM configurable, CONFIG_MAC_EEPROM_ADDR Kim Bøndergaard

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=510831B2.3030700@ti.com \
    --to=trini@ti.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