Skip to content

feat(spi): add AspeedNorFlash embedded-storage adapter#68

Open
rusty1968 wants to merge 2 commits intomainfrom
norflash-adapter
Open

feat(spi): add AspeedNorFlash embedded-storage adapter#68
rusty1968 wants to merge 2 commits intomainfrom
norflash-adapter

Conversation

@rusty1968
Copy link
Contributor

Implement embedded_storage::NorFlash and ReadNorFlash for any SpiNorDevice, bridging the aspeed-ddk SPI command interface to the standard embedded-storage 0.3 traits.

  • Add AspeedNorFlash<T: SpiNorDevice> wrapper
  • JEDEC ID probe for capacity detection
  • Page-boundary splitting for writes (256-byte pages)
  • Sector-aligned erase loops (4096-byte sectors)
  • 3-byte / 4-byte address mode auto-selection (>16MiB)
  • Add embedded-storage = 0.3.1 dependency

Implement embedded_storage::NorFlash and ReadNorFlash for any
SpiNorDevice, bridging the aspeed-ddk SPI command interface to
the standard embedded-storage 0.3 traits.

- Add AspeedNorFlash<T: SpiNorDevice> wrapper
- JEDEC ID probe for capacity detection
- Page-boundary splitting for writes (256-byte pages)
- Sector-aligned erase loops (4096-byte sectors)
- 3-byte / 4-byte address mode auto-selection (>16MiB)
- Add embedded-storage = 0.3.1 dependency
@rusty1968 rusty1968 requested a review from yvettewu1 February 17, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant