Browse Source

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

CR_9208_VF2_EEPROM_ziv.xu

See merge request sdk/u-boot!77
andy.hu 2 months ago
parent
commit
91e61488a6

+ 2 - 2
arch/riscv/dts/starfive_visionfive2.dts

@@ -366,9 +366,9 @@
 	status = "okay";
 
 	eeprom@50 {
-		compatible = "atmel,24c04";
+		compatible = "atmel,24c02";
 		reg = <0x50>;
-		pagesize = <16>;
+		pagesize = <8>;
 	};
 
 	pmic: axp15060_reg@36 {

+ 1 - 1
board/starfive/visionfive2/visionfive2-i2c-eeprom.c

@@ -23,7 +23,7 @@
  * only be written in page mode, which means 16 bytes at a time:
  * 16-Byte Page Write Buffer
  */
-#define BYTES_PER_EEPROM_PAGE			16
+#define BYTES_PER_EEPROM_PAGE			8
 
 /*
  * EEPROM_WRITE_DELAY_MS: the 24FC04H datasheet says it takes up to