Browse Source

Merge branch 'CR_9208_DEVKITS_EEPROM_ziv.xu' into 'jh7110-master'

CR_9208_DEVKITS_EEPROM_ziv.xu

See merge request sdk/u-boot!79
andy.hu 2 months ago
parent
commit
f1b1c9ad3e
2 changed files with 4 additions and 3 deletions
  1. 2 2
      arch/riscv/dts/starfive_devkits.dts
  2. 2 1
      include/configs/starfive-devkits.h

+ 2 - 2
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 {

+ 2 - 1
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