|
|
|
@ -113,7 +113,7 @@ sst_byte_write(struct spi_flash *flash, u32 offset, const void *buf) |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
debug("BP[%02x]: 0x%p => cmd = { 0x%02x 0x%06x }\n", |
|
|
|
|
spi_w8r8(flash->spi, CMD_READ_STATUS), buf, cmd[0], offset); |
|
|
|
|
spi_w8r8(flash->spi, CMD_READ_STATUS), buf, cmd[0], offset); |
|
|
|
|
|
|
|
|
|
ret = spi_flash_cmd_write_enable(flash); |
|
|
|
|
if (ret) |
|
|
|
@ -160,8 +160,8 @@ sst_write_wp(struct spi_flash *flash, u32 offset, size_t len, const void *buf) |
|
|
|
|
|
|
|
|
|
for (; actual < len - 1; actual += 2) { |
|
|
|
|
debug("WP[%02x]: 0x%p => cmd = { 0x%02x 0x%06x }\n", |
|
|
|
|
spi_w8r8(flash->spi, CMD_READ_STATUS), buf + actual, |
|
|
|
|
cmd[0], offset); |
|
|
|
|
spi_w8r8(flash->spi, CMD_READ_STATUS), buf + actual, |
|
|
|
|
cmd[0], offset); |
|
|
|
|
|
|
|
|
|
ret = spi_flash_cmd_write(flash->spi, cmd, cmd_len, |
|
|
|
|
buf + actual, 2); |
|
|
|
|