]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc/mpc85xx: socrates: add support for i2c eeprom at 0x51
authorHeiko Schocher <hs@denx.de>
Tue, 24 Jan 2023 17:06:57 +0000 (18:06 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 6 Feb 2023 18:04:53 +0000 (13:04 -0500)
add support for i2c eeprom on address 0x51.

Signed-off-by: Heiko Schocher <hs@denx.de>
arch/powerpc/dts/socrates-u-boot.dtsi
configs/socrates_defconfig

index 67c12f672cf5fe68ec21f5d4204357e1b41675d1..88df03173215ff424b5c8ca458995c34242877bb 100644 (file)
@@ -6,6 +6,10 @@
 #include <config.h>
 
 / {
+       aliases {
+               eeprom0 = &i2c_eeprom0;
+       };
+
        chosen {
                stdout-path = &serial0;
        };
        soc8544@e0000000 {
                i2c@3000 {
                        u-boot,dm-pre-reloc;
+
+                       i2c_eeprom0: eeprom@51{
+                               compatible = "atmel,24c64";
+                               reg = <0x51>;
+                               pagesize = <32>;
+                       };
                };
        };
 };
index c4a3fd30d8378ca5906972d4bfd53eff0b252b27..816e59872e74c07f4219050be709c02609f5c0a7 100644 (file)
@@ -39,6 +39,8 @@ CONFIG_CMD_REGINFO=y
 # CONFIG_BOOTM_VXWORKS is not set
 CONFIG_SYS_BOOTM_LEN=0x800000
 CONFIG_CMD_IMLS=y
+CONFIG_CMD_EEPROM=y
+CONFIG_SYS_EEPROM_PAGE_WRITE_BITS=4
 CONFIG_CMD_DM=y
 CONFIG_CMD_I2C=y
 CONFIG_LOADS_ECHO=y
@@ -79,6 +81,8 @@ CONFIG_SYS_BR3_PRELIM=0xC0001881
 CONFIG_SYS_OR3_PRELIM=0xFFF00000
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_FSL=y
+CONFIG_MISC=y
+CONFIG_I2C_EEPROM=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_DM_MTD=y