Page MenuHomeFreeBSD

flash: add w25n (nand flash) support
ClosedPublic

Authored by adrian on Feb 13 2025, 12:44 AM.
Tags
None
Referenced Files
F167839714: D48979.id151064.diff
Mon, Aug 24, 10:16 PM
Unknown Object (File)
Wed, Aug 19, 4:18 PM
Unknown Object (File)
Tue, Aug 18, 8:39 PM
Unknown Object (File)
Tue, Aug 18, 4:26 PM
Unknown Object (File)
Mon, Aug 17, 1:38 PM
Unknown Object (File)
Sun, Aug 16, 9:11 PM
Unknown Object (File)
Sun, Aug 16, 2:17 AM
Unknown Object (File)
Sat, Aug 15, 7:46 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 62410
Build 59294: arc lint + arc unit

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.Feb 14 2025, 11:49 PM
This revision was automatically updated to reflect the committed changes.