Page MenuHomeFreeBSD

flash: add initial support for SPI NAND flash parts.
Needs ReviewPublic

Authored by adrian on Feb 4 2022, 5:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 6, 4:43 AM
Unknown Object (File)
Sun, Oct 6, 3:46 AM
Unknown Object (File)
Thu, Oct 3, 8:18 AM
Unknown Object (File)
Thu, Oct 3, 1:08 AM
Unknown Object (File)
Wed, Oct 2, 11:47 PM
Unknown Object (File)
Sep 9 2024, 8:54 AM
Unknown Object (File)
Sep 5 2024, 7:26 PM
Unknown Object (File)
Jul 23 2024, 11:28 AM
Subscribers

Details

Reviewers
imp
Summary

This adds support for the w25n01gv, a 128MB SPI JEDEC NAND flash device.

The JEDEC commands for SPI NAND are different enough for SPI NOR, so yes
it's worth a different driver.

I'm only implementing enough to do reads from devices with ECC already
enabled in hardware. There are plenty of other ways to configure
the chip both at manufacturing and runtime; I'm choosing to be simple
for now whilst we figure out how we should expose NAND storage devices
to upper layers.

Writes, erases, bad block remapping, etc - that can all come later
as we figure out how to expose those via GEOM.

Tested with AC1300 router, w25n01gv, checksummed contents against
what Linux also sees.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44285
Build 41173: arc lint + arc unit