Commit 6b6d37377c4c4c5cd1d9505afbc4e2d3113707f2
Committed by
Brian Norris
1 parent
85bdcf6b25
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
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>
Showing 1 changed file with 7 additions and 1 deletions Side-by-side Diff
drivers/mtd/devices/st_spi_fsm.c
... | ... | @@ -372,14 +372,20 @@ |
372 | 372 | { "m25px32", 0x207116, 0, 64 * 1024, 64, M25PX_FLAG, 75, NULL }, |
373 | 373 | { "m25px64", 0x207117, 0, 64 * 1024, 128, M25PX_FLAG, 75, NULL }, |
374 | 374 | |
375 | + /* Macronix MX25xxx | |
376 | + * - Support for 'FLASH_FLAG_WRITE_1_4_4' is omitted for devices | |
377 | + * where operating frequency must be reduced. | |
378 | + */ | |
375 | 379 | #define MX25_FLAG (FLASH_FLAG_READ_WRITE | \ |
376 | 380 | FLASH_FLAG_READ_FAST | \ |
377 | 381 | FLASH_FLAG_READ_1_1_2 | \ |
378 | 382 | FLASH_FLAG_READ_1_2_2 | \ |
379 | 383 | FLASH_FLAG_READ_1_1_4 | \ |
380 | - FLASH_FLAG_READ_1_4_4 | \ | |
381 | 384 | FLASH_FLAG_SE_4K | \ |
382 | 385 | 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}, | |
383 | 389 | { "mx25l25635e", 0xc22019, 0, 64*1024, 512, |
384 | 390 | (MX25_FLAG | FLASH_FLAG_32BIT_ADDR | FLASH_FLAG_RESET), 70, |
385 | 391 | stfsm_mx25_config }, |