Page MenuHomeFreeBSD

flash: add w25n (nand flash) support
ClosedPublic

Authored by adrian on Thu, Feb 13, 12:44 AM.
Tags
None
Referenced Files
F110210054: D48979.diff
Sat, Feb 15, 4:07 AM
F110185689: D48979.diff
Fri, Feb 14, 7:17 PM
Unknown Object (File)
Thu, Feb 13, 10:49 AM
Subscribers

Details

Summary

This adds read only support for the W25N series of flash parts.

Specifically starting with the W25N01GV, a 128MiB SPI NAND flash.

This doesn't currently support writing or erasing, as this requires
a NAND flash layer that we don't currently have. There are also
plenty of other commands that aren't currently supported - notably
maintaining the on-chip flash translation layer, flash wear statistics,
etc.

But read support is fine enough for now; it at least allows for
reading the boot / config / calibration flash on my ASUS IPQ4018 based
router.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

OK. This is fine.

But... the commands are likely part of a larger family of parts...

But this also looks pretty basic, so it's fine. There's no larger framework for NAND like we need to do this completely... but that's a huge lift and I don't want to hold this up.

I don't see anything here that's bad for 'basic' support that this targets.

This revision is now accepted and ready to land.Fri, Feb 14, 11:49 PM
This revision was automatically updated to reflect the committed changes.