Skip to content

Commit a5dff51

Browse files
BoughChenprati0100
authored andcommitted
mtd: spi-nor: micron-st: add mt35xu01gbba support
mt35xu01gbba is similar with mt35xu512aba, but with two dies. mt35xu01gbba has SFDP and support 8D-8D-8D mode, but SFDP lack SNOR_F_IO_MODE_EN_VOLATILE, so add this fixup flags here. Besides, mt35xu01gbba do not support chip erase, but support die erase, so add that in late_init(). Link: https://datasheet.octopart.com/MT35XU02GCBA1G12-0AAT-Micron-datasheet-138896808.pdf Signed-off-by: Haibo Chen <haibo.chen@nxp.com> Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org> Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
1 parent 44dd635 commit a5dff51

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

drivers/mtd/spi-nor/micron-st.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,24 @@ static const struct spi_nor_fixups mt35xu512aba_fixups = {
185185
.post_sfdp = mt35xu512aba_post_sfdp_fixup,
186186
};
187187

188+
static const struct spi_nor_fixups mt35xu01gbba_fixups = {
189+
.post_sfdp = mt35xu512aba_post_sfdp_fixup,
190+
.late_init = micron_st_nor_two_die_late_init,
191+
};
192+
188193
static const struct flash_info micron_nor_parts[] = {
189194
{
190195
/* MT35XU512ABA */
191196
.id = SNOR_ID(0x2c, 0x5b, 0x1a),
192197
.mfr_flags = USE_FSR,
193198
.fixup_flags = SPI_NOR_IO_MODE_EN_VOLATILE,
194199
.fixups = &mt35xu512aba_fixups,
200+
}, {
201+
/* MT35XU01GBBA */
202+
.id = SNOR_ID(0x2c, 0x5b, 0x1b),
203+
.mfr_flags = USE_FSR,
204+
.fixup_flags = SPI_NOR_IO_MODE_EN_VOLATILE,
205+
.fixups = &mt35xu01gbba_fixups,
195206
}, {
196207
.id = SNOR_ID(0x2c, 0x5b, 0x1c),
197208
.name = "mt35xu02g",

0 commit comments

Comments
 (0)