File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ void board_reset_pd_mcu(void)
371371
372372}
373373
374- #define SPI_BLANK_OFFSET 0x3A000
374+ #define SPI_FLAGS_REGION 0x80000
375375
376376void spi_mux_control (int enable )
377377{
@@ -397,7 +397,7 @@ void board_spi_read_byte(uint8_t offset, uint8_t *data)
397397
398398 spi_mux_control (1 );
399399
400- rv = spi_flash_read (data , SPI_BLANK_OFFSET + offset , 0x01 );
400+ rv = spi_flash_read (data , SPI_FLAGS_REGION + offset , 0x01 );
401401 if (rv != EC_SUCCESS )
402402 CPRINTS ("SPI fail to read" );
403403
@@ -410,12 +410,12 @@ void board_spi_write_byte(uint8_t offset, uint8_t data)
410410
411411 spi_mux_control (1 );
412412
413- rv = spi_flash_erase (SPI_BLANK_OFFSET , 0x1000 );
413+ rv = spi_flash_erase (SPI_FLAGS_REGION , 0x1000 );
414414
415415 if (rv != EC_SUCCESS )
416416 CPRINTS ("SPI fail to erase" );
417417
418- rv = spi_flash_write (SPI_BLANK_OFFSET + offset , 0x01 , & data );
418+ rv = spi_flash_write (SPI_FLAGS_REGION + offset , 0x01 , & data );
419419
420420 if (rv != EC_SUCCESS )
421421 CPRINTS ("SPI fail to write" );
You can’t perform that action at this time.
0 commit comments