diff --git a/boards/remote-revb/Kconfig b/boards/remote-revb/Kconfig index 690112b812..e1cafa4b8c 100644 --- a/boards/remote-revb/Kconfig +++ b/boards/remote-revb/Kconfig @@ -14,13 +14,8 @@ config BOARD_REMOTE_REVB select HAS_ARDUINO select HAVE_SAUL_ADC select HAVE_SAUL_GPIO - select HAS_SDCARD_SPI - - select HAVE_MTD_SDCARD - select HAVE_SDCARD_SPI + select HAVE_MTD_SDCARD_DEFAULT select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT - select MODULE_MTD if MODULE_VFS_DEFAULT - select MODULE_SDCARD_SPI if MODULE_MTD source "$(RIOTBOARD)/common/remote/Kconfig" diff --git a/boards/remote-revb/Makefile.dep b/boards/remote-revb/Makefile.dep index e3e6879a63..f79007dd59 100644 --- a/boards/remote-revb/Makefile.dep +++ b/boards/remote-revb/Makefile.dep @@ -1,7 +1,7 @@ USEMODULE += boards_common_remote ifneq (,$(filter mtd,$(USEMODULE))) - USEMODULE += mtd_sdcard + USEMODULE += mtd_sdcard_default endif # default to using fatfs on SD card diff --git a/boards/remote-revb/board.c b/boards/remote-revb/board.c index bc2765b299..608ad45fac 100644 --- a/boards/remote-revb/board.c +++ b/boards/remote-revb/board.c @@ -24,35 +24,6 @@ #include "cpu.h" #include "fancy_leds.h" -#if defined(MODULE_MTD_SDCARD) -#include "mtd_sdcard.h" -#include "sdcard_spi.h" -#include "sdcard_spi_params.h" - -#if defined(MODULE_FATFS_VFS) -#include "fs/fatfs.h" -#include "vfs_default.h" -#endif - -/* this is provided by the sdcard_spi driver see drivers/sdcard_spi/sdcard_spi.c */ -extern sdcard_spi_t sdcard_spi_devs[ARRAY_SIZE(sdcard_spi_params)]; - -mtd_sdcard_t mtd_sdcard_dev = { - .base = { - .driver = &mtd_sdcard_driver, - }, - .sd_card = &sdcard_spi_devs[0], - .params = &sdcard_spi_params[0] -}; - -mtd_dev_t *mtd0 = (mtd_dev_t *)&mtd_sdcard_dev; - -#if IS_USED(MODULE_FATFS_VFS) -VFS_AUTO_MOUNT(fatfs, VFS_MTD(mtd_sdcard_dev), VFS_DEFAULT_SD(0), 0); -#endif /* MODULE_FATFS_VFS */ - -#endif /* MODULE_MTD_SDCARD */ - /** * @brief Initialize the boards on-board LEDs *