mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
Enable 4BA mode for Spansion 25FL256S
4BA mode is entered by setting bit 7 for the extended address register. Change-Id: I807bf55d65763a9f48a6a3377f14f4e5288a7a4c Signed-off-by: Nico Huber <nico.h@gmx.de> Tested-by: Michael Fuckner <michael@fuckner.net> Reviewed-on: https://review.coreboot.org/25133 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com>
This commit is contained in:
2
spi25.c
2
spi25.c
@ -849,6 +849,8 @@ static int spi_enter_exit_4ba(struct flashctx *const flash, const bool enter)
|
||||
ret = spi_send_command(flash, sizeof(cmd), 0, &cmd, NULL);
|
||||
else if (flash->chip->feature_bits & FEATURE_4BA_ENTER_WREN)
|
||||
ret = spi_simple_write_cmd(flash, cmd, 0);
|
||||
else if (flash->chip->feature_bits & FEATURE_4BA_ENTER_EAR7)
|
||||
ret = spi_set_extended_address(flash, enter ? 0x80 : 0x00);
|
||||
|
||||
if (!ret)
|
||||
flash->in_4ba_mode = enter;
|
||||
|
Reference in New Issue
Block a user