diff options
-rw-r--r-- | arch/riscv/dts/starfive_devkits.dts | 4 | ||||
-rw-r--r-- | include/configs/starfive-devkits.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/arch/riscv/dts/starfive_devkits.dts b/arch/riscv/dts/starfive_devkits.dts index 489a8f90be..52e8f759e3 100644 --- a/arch/riscv/dts/starfive_devkits.dts +++ b/arch/riscv/dts/starfive_devkits.dts @@ -231,9 +231,9 @@ }; eeprom@50 { - compatible = "atmel,24c04"; + compatible = "atmel,24c02"; reg = <0x50>; - pagesize = <16>; + pagesize = <8>; }; ext_gpio: ext_gpio@74 { diff --git a/include/configs/starfive-devkits.h b/include/configs/starfive-devkits.h index b7547d8064..9ff0ef99f7 100644 --- a/include/configs/starfive-devkits.h +++ b/include/configs/starfive-devkits.h @@ -367,8 +367,9 @@ * BYTES_PER_EEPROM_PAGE: the 24FC04H datasheet says that data can * only be written in page mode, which means 16 bytes at a time: * 16-Byte Page Write Buffer + * For compatibility with 24FC02, PAGE SIZE is set to 8 */ -#define BYTES_PER_EEPROM_PAGE 16 +#define BYTES_PER_EEPROM_PAGE 8 /* * EEPROM_WRITE_DELAY_MS: the 24FC04H datasheet says it takes up to |