[coreboot-gerrit] Patch set updated for coreboot: 4d5577f drivers/spi/stmicro: Add '.op_erase' for N25Q256

David Imhoff (dimhoff_devel@xs4all.nl) gerrit at coreboot.org
Sun May 3 17:18:09 CEST 2015


David Imhoff (dimhoff_devel at xs4all.nl) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10077

-gerrit

commit 4d5577f00b3a439b5df845acd9233fc558fdd6da
Author: David Imhoff <dimhoff_devel at xs4all.nl>
Date:   Sun May 3 16:05:41 2015 +0200

    drivers/spi/stmicro: Add '.op_erase' for N25Q256
    
    '.op_erase' was not specified for this chip. Set it to sub sector
    erase(CMD_M25PXX_SSE). Adjust page/sector size for sub sector erase
    to work.
    
    TEST=Untested, due to lack of hardware.
    
    Change-Id: Icc2748fbd3afeb56693e1c17d97eb490fba67064
    Signed-off-by: David Imhoff <dimhoff_devel at xs4all.nl>
---
 src/drivers/spi/stmicro.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/drivers/spi/stmicro.c b/src/drivers/spi/stmicro.c
index b67c072..ab21f8f 100644
--- a/src/drivers/spi/stmicro.c
+++ b/src/drivers/spi/stmicro.c
@@ -165,9 +165,10 @@ static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = {
 	},
 	{
 		.device_id = STM_ID_N25Q256A,
+		.op_erase = CMD_M25PXX_SSE,
 		.page_size = 256,
-		.pages_per_sector = 256,
-		.nr_sectors = 512,
+		.pages_per_sector = 16,
+		.nr_sectors = 8192,
 		.name = "N25Q256A",
 	},
 };



More information about the coreboot-gerrit mailing list