mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-04 12:21:03 +02:00
mtd: spi-nor: Remove recently added SST special case
Remove undocumented SST special case. This was added in commit
5d40b3d384dc ("mtd: spi-nor: Add parallel and stacked memories support")
without any explanation in the commit message. Remove it.
Fixes: 5d40b3d384dc ("mtd: spi-nor: Add parallel and stacked memories support")
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
parent
787692c8d7
commit
34cd4a72fb
@ -3578,19 +3578,6 @@ static int spi_nor_select_erase(struct spi_nor *nor,
|
||||
mtd->erasesize = info->sector_size;
|
||||
}
|
||||
|
||||
if ((JEDEC_MFR(info) == SNOR_MFR_SST) && info->flags & SECT_4K) {
|
||||
nor->erase_opcode = SPINOR_OP_BE_4K;
|
||||
/*
|
||||
* In parallel-memories the erase operation is
|
||||
* performed on both the flashes simultaneously
|
||||
* so, double the erasesize.
|
||||
*/
|
||||
if (nor->flags & SNOR_F_HAS_PARALLEL)
|
||||
mtd->erasesize = 4096 * 2;
|
||||
else
|
||||
mtd->erasesize = 4096;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user