All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] board: freescale: p2041rdb: use correct EEPROM address length
@ 2021-05-30  0:16 Matt Merhar
  0 siblings, 0 replies; only message in thread
From: Matt Merhar @ 2021-05-30  0:16 UTC (permalink / raw)
  To: u-boot
  Cc: Priyanka Jain, Matt Merhar, Adam Ford, Heiko Schocher,
	Igor Opaniuk, Marek Szyprowski

These boards, according to the schematic and per the board I own, use an
M24256-BWDW6TP I2C EEPROM which requires two address bytes.

This fixes the 'mac' command which is used to program, among other
things, the MAC addresses for the ethernet interfaces on the board.

Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
---

 include/configs/P2041RDB.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/P2041RDB.h b/include/configs/P2041RDB.h
index 3895c2d0c7..715154a0dd 100644
--- a/include/configs/P2041RDB.h
+++ b/include/configs/P2041RDB.h
@@ -92,7 +92,7 @@ unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_SYS_I2C_EEPROM_NXID
 #define CONFIG_SYS_EEPROM_BUS_NUM	0
 #define CONFIG_SYS_I2C_EEPROM_ADDR	0x50
-#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN	1
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN	2
 
 /*
  * DDR Setup
-- 
2.25.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-30  0:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-30  0:16 [PATCH] board: freescale: p2041rdb: use correct EEPROM address length Matt Merhar

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.