From 59a41968b5502a107b47ac7cec0b8677f13b1dcd Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 9 Jun 2020 16:28:15 +0200 Subject: [PATCH] boards/weact-f411ce: determine flash size at run-time The pad for SPI-Flash on the WeAct-f411ce does not come pre-populated. The user has to manually solder a SPI-flash chip on the board, so specifying a size here makes no sense. Instead, rely on automatic detection of the flash size at run-time. --- boards/weact-f411ce/board.c | 1 - boards/weact-f411ce/include/board.h | 1 - 2 files changed, 2 deletions(-) diff --git a/boards/weact-f411ce/board.c b/boards/weact-f411ce/board.c index 4a6b97aa42..ebb75e3674 100644 --- a/boards/weact-f411ce/board.c +++ b/boards/weact-f411ce/board.c @@ -46,7 +46,6 @@ static mtd_spi_nor_t weact_nor_dev = { .driver = &mtd_spi_nor_driver, .page_size = WEACT_411CE_NOR_PAGE_SIZE, .pages_per_sector = WEACT_411CE_NOR_PAGES_PER_SECTOR, - .sector_count = WEACT_411CE_NOR_SECTOR_COUNT, }, .params = &_weact_nor_params, }; diff --git a/boards/weact-f411ce/include/board.h b/boards/weact-f411ce/include/board.h index d88fbc0599..efc1fce19e 100644 --- a/boards/weact-f411ce/include/board.h +++ b/boards/weact-f411ce/include/board.h @@ -76,7 +76,6 @@ extern "C" { */ #define WEACT_411CE_NOR_PAGE_SIZE (256) #define WEACT_411CE_NOR_PAGES_PER_SECTOR (16) -#define WEACT_411CE_NOR_SECTOR_COUNT (128) #define WEACT_411CE_NOR_FLAGS (SPI_NOR_F_SECT_4K | SPI_NOR_F_SECT_32K) #define WEACT_411CE_NOR_SPI_DEV SPI_DEV(0) #define WEACT_411CE_NOR_SPI_CLK SPI_CLK_10MHZ