Skip to content

Commit

Permalink
esp32s3: fix system reset failure from bootloader_reset API
Browse files Browse the repository at this point in the history
  • Loading branch information
mahavirj committed Jul 19, 2024
1 parent abb5ce2 commit 16d017b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hw/xtensa/esp32s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,15 @@ static void esp32s3_soc_realize(DeviceState *dev, Error **errp)
qdev_realize(DEVICE(&s->rtc_cntl), &s->rtc_bus, &error_fatal);
esp32s3_soc_add_periph_device(sys_mem, &s->rtc_cntl, DR_REG_RTCCNTL_BASE);

qdev_connect_gpio_out_named(DEVICE(&s->rtc_cntl), ESP32S3_RTC_DIG_RESET_GPIO, 0,
qdev_get_gpio_in_named(dev, ESP32S3_RTC_DIG_RESET_GPIO, 0));
qdev_connect_gpio_out_named(DEVICE(&s->rtc_cntl), ESP32S3_RTC_CLK_UPDATE_GPIO, 0,
qdev_get_gpio_in_named(dev, ESP32S3_RTC_CLK_UPDATE_GPIO, 0));
for (int i = 0; i < ms->smp.cpus; ++i) {
qdev_connect_gpio_out_named(DEVICE(&s->rtc_cntl), ESP32S3_RTC_CPU_RESET_GPIO, i,
qdev_get_gpio_in_named(dev, ESP32S3_RTC_CPU_RESET_GPIO, i));
qdev_connect_gpio_out_named(DEVICE(&s->rtc_cntl), ESP32S3_RTC_CPU_STALL_GPIO, i,
qdev_get_gpio_in_named(dev, ESP32S3_RTC_CPU_STALL_GPIO, i));
}

for (int i = 0; i < ESP32S3_UART_COUNT; ++i) {
Expand Down

0 comments on commit 16d017b

Please sign in to comment.