Skip to content

Commit ae95735

Browse files
author
listout
committed
hw/xtensa/esp32.c: Using the largest flash size by default.
In commit 0152246 4MB (or gd25q32) was being hardcoded, as a result we could not use larger image size (> 4Mb). This PR should fix it, by using the largest available (gd25q64). Fixes: espressif#66 Signed-off-by: listout <[email protected]>
1 parent 1f88fe7 commit ae95735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hw/xtensa/esp32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ static void esp32_machine_init_spi_flash(Esp32SocState *ss, BlockBackend* blk)
669669
/* "main" flash chip is attached to SPI1, CS0 */
670670
DeviceState *spi_master = DEVICE(&ss->spi[1]);
671671
BusState* spi_bus = qdev_get_child_bus(spi_master, "spi");
672-
DeviceState *flash_dev = qdev_new("gd25q32");
672+
DeviceState *flash_dev = qdev_new("gd25q64");
673673
qdev_prop_set_drive(flash_dev, "drive", blk);
674674
qdev_realize_and_unref(flash_dev, spi_bus, &error_fatal);
675675
qdev_connect_gpio_out_named(spi_master, SSI_GPIO_CS, 0,

0 commit comments

Comments
 (0)