Skip to content

Commit

Permalink
hw/xtensa/esp32.c: Using the largest flash size by default.
Browse files Browse the repository at this point in the history
In commit 0152246 4MB (or gd25q32) was
being hardcoded, as a result we could not use larger image size could
not be used. This PR should fix it, by using the largest available
(gd25q64).

Fixes: espressif#66
Signed-off-by: listout <[email protected]>
  • Loading branch information
listout committed Feb 23, 2023
1 parent 1f88fe7 commit 35c7f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/xtensa/esp32.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ static void esp32_machine_init_spi_flash(Esp32SocState *ss, BlockBackend* blk)
/* "main" flash chip is attached to SPI1, CS0 */
DeviceState *spi_master = DEVICE(&ss->spi[1]);
BusState* spi_bus = qdev_get_child_bus(spi_master, "spi");
DeviceState *flash_dev = qdev_new("gd25q32");
DeviceState *flash_dev = qdev_new("gd25q64");
qdev_prop_set_drive(flash_dev, "drive", blk);
qdev_realize_and_unref(flash_dev, spi_bus, &error_fatal);
qdev_connect_gpio_out_named(spi_master, SSI_GPIO_CS, 0,
Expand Down

0 comments on commit 35c7f90

Please sign in to comment.