jturnsek opened a new pull request #3463: URL: https://github.com/apache/incubator-nuttx/pull/3463
## Summary i.MXRT FlexSPI architecture driver and mtd driver to control various NOR devices. ## Impact ## Testing Built and tested on MIMXRT1064-EVK board with imxrt_flexspi_nor.c: #include <nuttx/config.h> #include <stdbool.h> #include <errno.h> #include <debug.h> #include <nuttx/fs/fs.h> #include <nuttx/mtd/mtd.h> #include <nuttx/spi/flexspi.h> #include "imxrt_flexspi.h" #include "imxrt1064-evk.h" int imxrt_flexspi_nor_setup(void) { FAR struct flexspi_dev_s *flexspi_dev ; FAR struct mtd_dev_s *mtd_dev; int ret = -1; flexspi_dev = imxrt_flexspi_initialize(0); if (!flexspi_dev) { _err("ERROR: Failed to initialize FlexSPI minor %d: %d\n", 0, ret); return -1; } mtd_dev = flexspi_nor_initialize(flexspi_dev, false); if (!mtd_dev) { _err("ERROR: flexspi_nor_initialize() failed!\n"); return -1; } ret = register_mtddriver("/dev/nor", mtd_dev, 0755, NULL); if (ret < 0) { syslog(LOG_ERR, "ERROR: Failed to register MTD driver: %d\n", ret); } ret = nx_mount("/dev/nor", "/mnt/lfs", "littlefs", 0, "autoformat"); if (ret < 0) { syslog(LOG_ERR, "ERROR: Failed to mount LittleFS at /mnt/lfs: %d\n", ret); } return 0; } -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org