]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: freescale: p2041rdb: use correct EEPROM address length
authorMatt Merhar <mattmerhar@protonmail.com>
Sun, 30 May 2021 00:16:17 +0000 (00:16 +0000)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 17 Jun 2021 06:16:11 +0000 (11:46 +0530)
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>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
include/configs/P2041RDB.h

index 3895c2d0c737295fbad39fe6903bef534b9bcd10..715154a0ddf39c3fd2cda1ea61f9eb10cd71cd76 100644 (file)
@@ -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