From: Matt Merhar Date: Sun, 30 May 2021 00:16:17 +0000 (+0000) Subject: board: freescale: p2041rdb: use correct EEPROM address length X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=6bc2419cc25dd89f889c1ede88c68c046c64d943;p=u-boot.git board: freescale: p2041rdb: use correct EEPROM address length 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 Reviewed-by: Priyanka Jain --- 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