S28Hx-T family has multi-die devices that support die erase opcode. Update die erase opcode when the device is multi-die.
Unified · Split
| @@ -762,6 +762,9 @@ static int s28hx_t_late_init(struct spi_nor *nor) · 761 unmodified lines | ||
| 762 | 762 | params->ready = cypress_nor_sr_ready_and_clear; |
| 763 | 763 | cypress_nor_ecc_init(nor); |
| 764 | 764 | |
| 765 | + if (params->n_dice > 1) | |
| 766 | + params->die_erase_opcode = SPINOR_OP_CYPRESS_DIE_ERASE; | |
| 767 | + | |
| 765 | 768 | return 0; |
| 766 | 769 | } |
| 767 | 770 | |