diff options
author | DanielZhang <danielzhang@mxic.com.cn> | 2024-04-12 12:01:10 +0800 |
---|---|---|
committer | Anastasia Klimchuk <aklm@chromium.org> | 2024-05-17 07:45:29 +0000 |
commit | 61b26a5fe86f250b9daefac38aed1e2d8e132e71 (patch) | |
tree | 186bb97c4b385b379f64e907795cab25137637f9 /flashchips.c | |
parent | 138387aa67c6aaac8661427f4701e34d82fae48f (diff) | |
download | flashrom-61b26a5fe86f250b9daefac38aed1e2d8e132e71.tar.gz flashrom-61b26a5fe86f250b9daefac38aed1e2d8e132e71.tar.bz2 flashrom-61b26a5fe86f250b9daefac38aed1e2d8e132e71.zip |
flashchips: Add support for MXIC MX25L1636E
The MX25L1636E has been tested by ch341a programmer : read, write,
erase and wp.
We have tested --wp-enable, --wp-disable, --wp-list and --wp-range
commands for write-protect feature.
MX25L1636E datasheet is available at the following URL:
https://www.mxic.com.tw/Lists/Datasheet/Attachments/8596/MX25L1636E,%203V,%2016Mb,%20v1.3.pdf
Change-Id: I415e2d6c89d3d59ba44e22753001c6f69421c39d
Signed-off-by: DanielZhang <danielzhang@mxic.com.cn>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/81835
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Diffstat (limited to 'flashchips.c')
-rw-r--r-- | flashchips.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/flashchips.c b/flashchips.c index 13024de94..245d8e994 100644 --- a/flashchips.c +++ b/flashchips.c @@ -9417,15 +9417,15 @@ const struct flashchip flashchips[] = { { .vendor = "Macronix", - .name = "MX25L1635E", + .name = "MX25L1635E/MX25L1636E", .bustype = BUS_SPI, .manufacture_id = MACRONIX_ID, .model_id = MACRONIX_MX25L1635E, .total_size = 2048, .page_size = 256, - /* OTP: 64B total; enter 0xB1, exit 0xC1 */ + /* OTP: 512B total; enter 0xB1, exit 0xC1 */ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, - .tested = TEST_UNTESTED, + .tested = TEST_OK_PREWB, .probe = PROBE_SPI_RDID, .probe_timing = TIMING_ZERO, .block_erasers = @@ -9449,6 +9449,13 @@ const struct flashchip flashchips[] = { .write = SPI_CHIP_WRITE256, .read = SPI_CHIP_READ, /* Fast read (0x0B) and multi I/O supported */ .voltage = {2700, 3600}, + .reg_bits = + { + .srp = {STATUS1, 7, RW}, + .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, + }, + + .decode_range = DECODE_RANGE_SPI25, }, { |