1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

10 Commits

Author SHA1 Message Date
Gunar Schorcht
46040a4361 boards: use XFA with MTD pointers for defined MTDs 2023-10-02 12:28:08 +02:00
Benjamin Valentin
67417ce5a9 drivers/mtd_spi_nor: drop addr_width from mtd_spi_nor_params_t
This is now always determined at run-time.
2022-02-04 12:17:17 +01:00
Benjamin Valentin
fc88c4c4e5 boards: drop cpu_init() 2021-10-13 23:36:41 +02:00
Benjamin Valentin
c839fe2e77 boards: define mtd_spi_nor HOLD and WP pins
None of the boards used them before, so just set them to GPIO_UNDEF
2020-11-02 21:17:36 +01:00
Benjamin Valentin
fde3026312 drivers/mtd_spi_nor: prevent data corruption on 'sector erase'
There is no difference between 4k erase and sector erase.
But sector erase would previously do `.block_erase` which would not
erase a sector (4k) but a whole block (64k).

Fortunately all boards declare `SPI_NOR_F_SECT_4K` and all file systems
don't try to erase anything smaller, so this was never triggered.

Add an `assert(0)` to crash instead of corrupting data.
2020-10-26 13:48:26 +01:00
Francisco Molina
61eecf6fe0
drivers/mtd_spi_nor: power up MTD on init 2020-04-21 11:09:40 +02:00
8931889865
pinetime: add erase timings to mtd_spi_nor instance 2020-03-03 09:49:08 +01:00
cbb248319e boards/pinetime: update mtd_spi_nor config 2020-02-26 10:00:55 +01:00
514873fe12
pinetime: add MTD configuration 2020-02-25 14:31:39 +01:00
5c21df5fee boards/pinetime: initial support for the PINE64 PineTime smartwatch 2020-01-14 21:06:43 +01:00