[BACKPORT] px4 mtd:Support FlexSPI attached Devices

This commit is contained in:
David Sidrane
2024-05-02 06:25:07 -07:00
parent 3697ac46ab
commit 69ccd4e20d
3 changed files with 8 additions and 0 deletions
@@ -357,6 +357,11 @@ memoryout:
} else if (mtd_list->entries[num_entry]->device->bus_type == px4_mft_device_t::SPI) {
rv = ramtron_attach(*instances[i]);
#if defined(HAS_FLEXSPI)
} else if (mtd_list->entries[num_entry]->device->bus_type == px4_mft_device_t::FLEXSPI) {
rv = flexspi_attach(instances[i]);
#endif
} else if (mtd_list->entries[num_entry]->device->bus_type == px4_mft_device_t::ONCHIP) {
instances[i]->n_partitions_current++;