]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
flex_spi: Support for FlexSPI Flash controller.
authorWojciech Macek <wma@FreeBSD.org>
Thu, 25 Nov 2021 09:36:55 +0000 (10:36 +0100)
committerWojciech Macek <wma@FreeBSD.org>
Tue, 30 Nov 2021 05:41:34 +0000 (06:41 +0100)
commit94e25b7acba7f929606a1a57f8d193995d8f8920
tree2dd2cf8d692adad13f9638b32d210ca7d6e8b576
parentf16ec9c6e36f1d481468e7301d6f3b857db17561
flex_spi: Support for FlexSPI Flash controller.

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
sys/conf/files.arm64
sys/dev/flash/flexspi/flex_spi.c [new file with mode: 0644]
sys/dev/flash/flexspi/flex_spi.h [new file with mode: 0644]
sys/modules/Makefile
sys/modules/flash/Makefile [new file with mode: 0644]
sys/modules/flash/flexspi/Makefile [new file with mode: 0644]