History

mtd: spi-nor: spansion: add die erase support in s28hx-t

S28Hx-T family has multi-die devices that support die erase opcode. Update die erase opcode when the device is multi-die.

Takahiro Kuwano committed 5 months ago

Commit df415c51 parent 306e4431 file · +3 −0Browse files

Unified · Split

drivers/mtd/spi-nor/spansion.c+3−0
@@ -762,6 +762,9 @@ static int s28hx_t_late_init(struct spi_nor *nor) · 761 unmodified lines
762762 params->ready = cypress_nor_sr_ready_and_clear;
763763 cypress_nor_ecc_init(nor);
764764
765+ if (params->n_dice > 1)
766+ params->die_erase_opcode = SPINOR_OP_CYPRESS_DIE_ERASE;
767+
765768 return 0;
766769 }
767770

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t