Skip to content

Commit 6b6d373

Browse files
Angus Clarkcomputersforpeace
authored andcommitted
mtd: st_spi_fsm: Add support for Macronix MX25L3255E
This patch adds support for the Macronix MX25L3255E device. Unlike the other Macronix devices we have seen, this device supports WRITE_1_4_4 at reasonable frequencies. Rather than masking out WRITE_1_4_4 support altogether, we now rely on the table parameters to indicate whether or not WRITE_1_4_4 should be used. Signed-off-by: Angus Clark <angus.clark@st.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
1 parent 85bdcf6 commit 6b6d373

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎drivers/mtd/devices/st_spi_fsm.c‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,14 +372,20 @@ static struct flash_info flash_types[] = {
372372
{ "m25px32", 0x207116, 0, 64 * 1024, 64, M25PX_FLAG, 75, NULL },
373373
{ "m25px64", 0x207117, 0, 64 * 1024, 128, M25PX_FLAG, 75, NULL },
374374

375+
/* Macronix MX25xxx
376+
* - Support for 'FLASH_FLAG_WRITE_1_4_4' is omitted for devices
377+
* where operating frequency must be reduced.
378+
*/
375379
#define MX25_FLAG (FLASH_FLAG_READ_WRITE | \
376380
FLASH_FLAG_READ_FAST | \
377381
FLASH_FLAG_READ_1_1_2 | \
378382
FLASH_FLAG_READ_1_2_2 | \
379383
FLASH_FLAG_READ_1_1_4 | \
380-
FLASH_FLAG_READ_1_4_4 | \
381384
FLASH_FLAG_SE_4K | \
382385
FLASH_FLAG_SE_32K)
386+
{ "mx25l3255e", 0xc29e16, 0, 64 * 1024, 64,
387+
(MX25_FLAG | FLASH_FLAG_WRITE_1_4_4), 86,
388+
stfsm_mx25_config},
383389
{ "mx25l25635e", 0xc22019, 0, 64*1024, 512,
384390
(MX25_FLAG | FLASH_FLAG_32BIT_ADDR | FLASH_FLAG_RESET), 70,
385391
stfsm_mx25_config },

0 commit comments

Comments
 (0)