[flashrom] [PATCH] Add flash chip definition for ESI ES25P40 and ES25P80

Hatim Kanchwala hatim at hatimak.me
Fri Jan 29 16:03:46 CET 2016


Updated comments in spi.h to reflect ESI chip opcodes. Updated patch
follows.

Signed-off-by: Hatim Kanchwala <hatim at hatimak.me>

--

Index: flashchips.c
===================================================================
--- flashchips.c        (revision 1919)
+++ flashchips.c        (working copy)
@@ -5273,4 +5273,67 @@

        {
+               .vendor              = "ESI",
+               .name                = "ES25P40",
+               .bustype             = BUS_SPI,
+               .manufacture_id      = EXCEL_ID_NOPREFIX,
+               .model_id            = EXCEL_ES25P40,
+               .total_size          = 512,
+               .page_size           = 256,
+               /* 256-byte paramter page separate from memory array */
+               /* Supports read (0x53), fast read (0x5B), erase (0xD5)
and program (0x52) parameter page instructions. */
+               .feature_bits        = FEATURE_WRSR_WREN,
+               .tested              = TEST_UNTESTED,
+               .probe               = probe_spi_rdid,
+               .probe_timing        = TIMING_ZERO,
+               .block_erasers       =
+               {
+                 {
+                   .eraseblocks = { {64 * 1024, 8} },
+                   .block_erase = spi_block_erase_d8,
+                 }, {
+                   .eraseblocks = { {512 * 1024, 1} },
+                   .block_erase = spi_block_erase_c7,
+                 }
+               },
+               .printlock           =
spi_prettyprint_status_register_bp2_srwd,
+               .unlock              = spi_disable_blockprotect_bp2_srwd,
+               .write               = spi_chip_write_256,
+               .read                = spi_chip_read, /* Fast Read
(0x0B) supported */
+               .voltage             = {2700, 3600},
+       },
+
+
+       {
+               .vendor              = "ESI",
+               .name                = "ES25P80",
+               .bustype             = BUS_SPI,
+               .manufacture_id      = EXCEL_ID_NOPREFIX,
+               .model_id            = EXCEL_ES25P80,
+               .total_size          = 1024,
+               .page_size           = 256,
+               /* 256-byte paramter page separate from memory array */
+               /* Supports read (0x53), fast read (0x5B), erase (0xD5)
and program (0x52) parameter page instructions. */
+               .feature_bits        = FEATURE_WRSR_WREN,
+               .tested              = TEST_UNTESTED,
+               .probe               = probe_spi_rdid,
+               .probe_timing        = TIMING_ZERO,
+               .block_erasers       =
+               {
+                 {
+                   .eraseblocks = { {64 * 1024, 16} },
+                   .block_erase = spi_block_erase_d8,
+                 }, {
+                   .eraseblocks = { {1024 * 1024, 1} },
+                   .block_erase = spi_block_erase_c7,
+                 }
+               },
+               .printlock           =
spi_prettyprint_status_register_bp2_srwd,
+               .unlock              = spi_disable_blockprotect_bp2_srwd,
+               .write               = spi_chip_write_256,
+               .read                = spi_chip_read, /* Fast Read
(0x0B) supported */
+               .voltage             = {2700, 3600},
+       },
+
+       {
                .vendor         = "Fujitsu",
                .name           = "MBM29F004BC",
Index: spi.h
===================================================================
--- spi.h       (revision 1919)
+++ spi.h       (working copy)
@@ -72,5 +72,5 @@
 #define JEDEC_CE_62_INSIZE     0x00

-/* Chip Erase 0xc7 is supported by SST/ST/EON/Macronix chips. */
+/* Chip Erase 0xc7 is supported by SST/ST/EON/Macronix/ESI chips. */
 #define JEDEC_CE_C7            0xc7
 #define JEDEC_CE_C7_OUTSIZE    0x01
@@ -97,5 +97,5 @@
 #define JEDEC_BE_C4_INSIZE     0x00

-/* Block Erase 0xd8 is supported by EON/Macronix chips. */
+/* Block Erase 0xd8 is supported by EON/Macronix/ESI chips. */
 #define JEDEC_BE_D8            0xd8
 #define JEDEC_BE_D8_OUTSIZE    0x04

--

On Friday 29 January 2016 05:27 PM, Hatim Kanchwala wrote:
> Signed-off-by: Hatim Kanchwala <hatim at hatimak.me>
> 
> --
> 
> Index: flashchips.c
> ===================================================================
> --- flashchips.c        (revision 1919)
> +++ flashchips.c        (working copy)
> @@ -5273,4 +5273,67 @@
> 
>         {
> +               .vendor              = "ESI",
> +               .name                = "ES25P40",
> +               .bustype             = BUS_SPI,
> +               .manufacture_id      = EXCEL_ID_NOPREFIX,
> +               .model_id            = EXCEL_ES25P40,
> +               .total_size          = 512,
> +               .page_size           = 256,
> +               /* 256-byte paramter page separate from memory array */
> +               /* Supports read (0x53), fast read (0x5B), erase (0xD5)
> and program (0x52) parameter page instructions. */
> +               .feature_bits        = FEATURE_WRSR_WREN,
> +               .tested              = TEST_UNTESTED,
> +               .probe               = probe_spi_rdid,
> +               .probe_timing        = TIMING_ZERO,
> +               .block_erasers       =
> +               {
> +                 {
> +                   .eraseblocks = { {64 * 1024, 8} },
> +                   .block_erase = spi_block_erase_d8,
> +                 }, {
> +                   .eraseblocks = { {512 * 1024, 1} },
> +                   .block_erase = spi_block_erase_c7,
> +                 }
> +               },
> +               .printlock           =
> spi_prettyprint_status_register_bp2_srwd,
> +               .unlock              = spi_disable_blockprotect_bp2_srwd,
> +               .write               = spi_chip_write_256,
> +               .read                = spi_chip_read, /* Fast Read
> (0x0B) supported */
> +               .voltage             = {2700, 3600},
> +       },
> +
> +
> +       {
> +               .vendor              = "ESI",
> +               .name                = "ES25P80",
> +               .bustype             = BUS_SPI,
> +               .manufacture_id      = EXCEL_ID_NOPREFIX,
> +               .model_id            = EXCEL_ES25P80,
> +               .total_size          = 1024,
> +               .page_size           = 256,
> +               /* 256-byte paramter page separate from memory array */
> +               /* Supports read (0x53), fast read (0x5B), erase (0xD5)
> and program (0x52) parameter page instructions. */
> +               .feature_bits        = FEATURE_WRSR_WREN,
> +               .tested              = TEST_UNTESTED,
> +               .probe               = probe_spi_rdid,
> +               .probe_timing        = TIMING_ZERO,
> +               .block_erasers       =
> +               {
> +                 {
> +                   .eraseblocks = { {64 * 1024, 16} },
> +                   .block_erase = spi_block_erase_d8,
> +                 }, {
> +                   .eraseblocks = { {1024 * 1024, 1} },
> +                   .block_erase = spi_block_erase_c7,
> +                 }
> +               },
> +               .printlock           =
> spi_prettyprint_status_register_bp2_srwd,
> +               .unlock              = spi_disable_blockprotect_bp2_srwd,
> +               .write               = spi_chip_write_256,
> +               .read                = spi_chip_read, /* Fast Read
> (0x0B) supported */
> +               .voltage             = {2700, 3600},
> +       },
> +
> +       {
>                 .vendor         = "Fujitsu",
>                 .name           = "MBM29F004BC",
> 
> --
> 
> Regards,
> Hatim Kanchwala
> http://hatimak.me
> B. Tech. Electrical Engineering
> Indian Institute of Technology Patna
> 
> _______________________________________________
> flashrom mailing list
> flashrom at flashrom.org
> http://www.flashrom.org/mailman/listinfo/flashrom
> 

-- 

Regards,
Hatim Kanchwala
http://hatimak.me
B. Tech. Electrical Engineering
Indian Institute of Technology Patna




More information about the flashrom mailing list