Skip to content

Commit

Permalink
arch/arm64/src/imx9: Add an mtd driver for NOR flash on FlexSPI inter…
Browse files Browse the repository at this point in the history
…face

This is an initial FlexSPI SPI NOR MTD driver for IMX9

This supprts M25P SPI NOR on FlexSPI for now, and can later be extended to other
SPINOR devices if needed. The following configurations are needed to use this driver:
  CONFIG_IMX9_FLEXSPI_NOR=y
  CONFIG_MTD_M25P=y

In addition, board initialization logic needs to call the imx9_flexspi_nor_initialize
to receive a pointer to the mtd device.

Signed-off-by: Jukka Laitinen <[email protected]>
Co-authored-by: Jouni Ukkonen <[email protected]>
  • Loading branch information
jlaitine and joukkone committed Jul 5, 2024
1 parent f92c49e commit 9e125c4
Show file tree
Hide file tree
Showing 4 changed files with 1,172 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm64/src/imx9/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ config IMX9_FLEXSPI
bool "ENABLE FLEXSPI interface"
default n

config IMX9_FLEXSPI_NOR
bool "Enable NOR flash on FLEXSPI interface"
select IMX9_FLEXSPI
default n

config IMX9_FLEXIO1_PWM
depends on PWM
Expand Down
4 changes: 4 additions & 0 deletions arch/arm64/src/imx9/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@ endif
ifeq ($(CONFIG_IMX9_FLEXSPI), y)
CHIP_CSRCS += imx9_flexspi.c
endif

ifeq ($(CONFIG_IMX9_FLEXSPI_NOR), y)
CHIP_CSRCS += imx9_flexspi_nor.c
endif
Loading

0 comments on commit 9e125c4

Please sign in to comment.