zephyr/drivers/flash
Thomas Stranger cfac53b76f drivers: flash: stm32g0: dual bank handling
This commit fixes dual bank flash handling on stm32g0 targets.
In contrast to other Series (G4, L5) the flash page size does not change
in single bank configuration (2KiB in both configurations).

nSWAP_BANK:
While the reference manual(RM) only documents:
"This bit selects the bank that is the subject of empty check upon boot"
as expected, this behaves similar to BFB2 on G4 and SWAP_BANK on L5.
It has been observed that this bit swaps the address mapping of bank1
and bank2, regardless of DUAL_BANK bit being set or not.
As documented in the RM the nSWAP_BANK bit is ignored when the BOOT_LOOK
bit is set. This applies to the empty check as well as the address
mapping.

On this Series FLASH_CR_BKER must be set in single-bank as well as
dual-bank configuration for erase operations on bank2 regardless of
the swap status.

On a G0B1RE (dev-id: 0x467) I could not observe a difference between
DUAL_BANK flash option bit set and not.
It this may be different on 256KiB Flash targets.
The HAL indicates that "FLASH_SALES_TYPE_0" only uses a single bank if
OB_DUAL_BANK_VALUE is not set, but as I don't know which SoC this is
and I can't test the behaviour and the driver does not take this into
account.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2021-11-17 11:06:59 -05:00
..
CMakeLists.txt drivers: flash: the chosen_flash variable was not read properly 2021-11-02 13:23:56 +01:00
flash_esp32.c soc: riscv: esp32c3: drivers: flash: add support 2021-10-28 06:47:21 -04:00
flash_gecko.c
flash_handlers.c
flash_ite_it8xxx2.c
flash_mcux_flexspi_hyperflash.c drivers: flash: added flexspi hyperflash. 2021-10-19 16:42:12 -05:00
flash_mcux_flexspi_mx25um51345g.c
flash_mcux_flexspi_nor.c
flash_page_layout.c
flash_priv.h
flash_sam0.c
flash_sam.c
flash_shell.c
flash_simulator.c drivers/flash/flash_simulator: allow to disable statistic 2021-09-01 12:10:19 +02:00
flash_stm32_qspi.c
flash_stm32_v1.c
flash_stm32.c drivers: flash: stm32: wait for CFGBSY & BSY2 in wait_flash_idle 2021-11-17 11:06:59 -05:00
flash_stm32.h drivers: flash: stm32: wait for CFGBSY & BSY2 in wait_flash_idle 2021-11-17 11:06:59 -05:00
flash_stm32f2x.c
flash_stm32f4x.c
flash_stm32f7x.c
flash_stm32g0x.c drivers: flash: stm32g0: dual bank handling 2021-11-17 11:06:59 -05:00
flash_stm32g4x.c
flash_stm32h7x.c
flash_stm32l4x.c
flash_stm32l5x.c
flash_stm32wbx.c
jesd216.c
jesd216.h
Kconfig
Kconfig.at45
Kconfig.b91
Kconfig.esp32 soc: riscv: esp32c3: drivers: flash: add support 2021-10-28 06:47:21 -04:00
Kconfig.gecko
Kconfig.it8xxx2
Kconfig.lpc
Kconfig.mcux drivers: flash: added flexspi hyperflash. 2021-10-19 16:42:12 -05:00
Kconfig.nios2_qspi
Kconfig.nor
Kconfig.nordic_qspi_nor
Kconfig.nrf
Kconfig.rv32m1
Kconfig.sam drivers: flash: Kconfig.sam: -depends on and +dfu sample exclude 2021-09-02 13:23:47 -04:00
Kconfig.sam0
Kconfig.simulator drivers/flash/flash_simulator: allow to disable statistic 2021-09-01 12:10:19 +02:00
Kconfig.stm32
Kconfig.stm32_qspi
nrf_qspi_nor.c drivers/flash/nrf_qspi_nor: Modify qspi_erase loop condition 2021-11-09 16:02:26 -06:00
soc_flash_b91.c
soc_flash_lpc.c
soc_flash_mcux.c
soc_flash_nios2_qspi.c
soc_flash_nrf_ticker.c Bluetooth: Controller: Propagate ticks_drift in the ticker callback 2021-09-17 14:30:07 +02:00
soc_flash_nrf.c
soc_flash_nrf.h
soc_flash_rv32m1.c
spi_flash_at45.c drivers: use common PM action callback naming 2021-11-03 20:27:18 -04:00
spi_nor.c flash: spi_nor: fix building on XCC 2021-08-31 07:36:28 -04:00
spi_nor.h