rp: Don't reset QSPI bank or flush XIP cache
We should do as little 'damage' when attaching to the processor, so don't reset the entire QSPI IO and PADS subsystems. We can assume that either the bootloader or the running program has setup the QSPI pins into some kindn of useable mode. Similarly no need to clear the XIP cache as we will not be making any cacheable XIP accesses.
This commit is contained in:
parent
427fe1f698
commit
14882c61ab
|
@ -205,9 +205,9 @@ static uint32_t rp_get_flash_length(target *t);
|
|||
static bool rp_mass_erase(target *t);
|
||||
|
||||
// Our own implementation of bootloader functions for handling flash chip
|
||||
static void rp_flash_connect_internal(target *t);
|
||||
static void __attribute__((unused))rp_flash_connect_internal(target *t);
|
||||
static void rp_flash_exit_xip(target *t);
|
||||
static void rp_flash_flush_cache(target *t);
|
||||
static void __attribute__((unused))rp_flash_flush_cache(target *t);
|
||||
static void rp_flash_enter_xip(target *t);
|
||||
|
||||
static void rp_spi_read_sfdp(target *const t, const uint32_t address, void *const buffer, const size_t length)
|
||||
|
@ -223,7 +223,6 @@ static void rp_add_flash(target *t)
|
|||
return;
|
||||
}
|
||||
|
||||
rp_flash_connect_internal(t);
|
||||
rp_flash_exit_xip(t);
|
||||
|
||||
spi_parameters_s spi_parameters;
|
||||
|
@ -235,7 +234,6 @@ static void rp_add_flash(target *t)
|
|||
spi_parameters.sector_erase_opcode = SPI_FLASH_CMD_SECTOR_ERASE;
|
||||
}
|
||||
|
||||
rp_flash_flush_cache(t);
|
||||
rp_flash_enter_xip(t);
|
||||
|
||||
DEBUG_INFO("Flash size: %" PRIu16 " MB\n", spi_parameters.capacity / (1024U * 1024U));
|
||||
|
|
Loading…
Reference in New Issue