NXP FlexSPI is a complex SPI controller which provides full offload for accessing NOR Flash. Create a Flash driver which attaches to existing FreeBSD infrastructure and exports generic READ and WRITE disk commands. The Flash has to be identified first to configure controller internals. For now, only one NOR Flash chip is supported. Future commits shall either increase number of known chips or implement SFDP mechanism which can be used by other Flash drivers. Sponsored by: Alstom Obtained from: Semihalf Differential revision: https://reviews.freebsd.org/D33117
16 lines
200 B
Makefile
16 lines
200 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${SRCTOP}/sys/dev/flash/flexspi
|
|
|
|
KMOD= flexspi
|
|
SRCS= flex_spi.c
|
|
|
|
# Generated files...
|
|
SRCS+= \
|
|
bus_if.h \
|
|
device_if.h \
|
|
ofw_bus_if.h \
|
|
opt_platform.h \
|
|
|
|
.include <bsd.kmod.mk>
|