Skip to content

Commit e299057

Browse files
authored
lotus: read PD ej889i register correctly (#877)
We use the logical analyzer to capture the log, found we read the PD register 0x0E instead of 0x800E cause the PD chip abnormal. Use i2c_read_offset16() to read the ej889i register Signed-off-by: Josh-Tsai <[email protected]>
1 parent fc47b5f commit e299057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zephyr/program/lotus/lotus/src/gpu_configuration.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ int parse_gpu_eeprom(void)
745745
if (rv != EC_SUCCESS) {
746746
/* run device detection */
747747
/* check if GPU PD is present */
748-
rv = i2c_read8(I2C_PORT_GPU0, 0x60, 0x800E, &i);
748+
rv = i2c_read_offset16(I2C_PORT_GPU0, 0x60, 0x800E, &i, 1);
749749
if (rv == EC_SUCCESS) {
750750
/* assume R23M GPU */
751751
CPRINTS("Detected EEPROM and PD: Defaulting to R23M");

0 commit comments

Comments
 (0)