Skip to content

Commit

Permalink
Merge branch 'bugfix/reserve_mspi_pin_regarding_line_mode' into 'master'
Browse files Browse the repository at this point in the history
fix(gpio_reserve): reserve the mspi pin regarding line mode

See merge request espressif/esp-idf!33488
  • Loading branch information
L-KAYA committed Sep 13, 2024
2 parents f98e288 + a80603c commit bd38d80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/spi_flash/flash_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ void esp_mspi_pin_reserve(void)
uint64_t reserve_pin_mask = 0;
uint8_t mspi_io;
for (esp_mspi_io_t i = 0; i < ESP_MSPI_IO_MAX; i++) {
#if SOC_SPI_MEM_SUPPORT_OPI_MODE
if (!bootloader_flash_is_octal_mode_enabled()
&& i >= ESP_MSPI_IO_DQS && i <= ESP_MSPI_IO_D7) {
continue;
}
#endif
mspi_io = esp_mspi_get_io(i);
if (mspi_io < 64) { // 'reserve_pin_mask' have 64 bits length
reserve_pin_mask |= BIT64(mspi_io);
Expand Down

0 comments on commit bd38d80

Please sign in to comment.