Summary: | [patch] Teach mx25l SPI flash driver to interact with fdt_slicer and geom_flashmap | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Stanislav Galabov <sgalabov> | ||||
Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | sgalabov, sgalabov | ||||
Priority: | --- | Keywords: | patch | ||||
Version: | CURRENT | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
A commit references this bug: Author: adrian Date: Fri Jan 22 03:15:53 UTC 2016 New revision: 294544 URL: https://svnweb.freebsd.org/changeset/base/294544 Log: [flash] Teach mx25l SPI flash driver to interact with fdt_slicer and geom_flashmap This teaches the mx25l driver (sys/dev/flash/mx25l.c) to interact with sys/dev/fdt/fdt_slicer.c and sys/geom/geom_flashmap.c. This allows systems with SPI flash to benefit from the possibility to define flash 'slices' via FDT, just the same way that it's currently possible for CFI and NAND flashes. Tested: * Carambola 2, AR9331 + SPI NOR flash PR: kern/206227 Submitted by: Stanislav Galabov <sgalabov@gmail.com> Changes: head/sys/dev/flash/mx25l.c A commit references this bug: Author: adrian Date: Sat Jan 23 05:26:30 UTC 2016 New revision: 294616 URL: https://svnweb.freebsd.org/changeset/base/294616 Log: Teach the flashmap code about the SPI flash. PR: kern/206227 Submitted by: Stanislav Galabov <sgalabov@gmail.com> Changes: head/sys/geom/geom_flashmap.c A commit references this bug: Author: adrian Date: Sat Jan 23 05:27:55 UTC 2016 New revision: 294617 URL: https://svnweb.freebsd.org/changeset/base/294617 Log: Now that the flashmap code knows about SPI flash, add it in builds. PR: kern/206227 Submitted by: Stanislav Galabov <sgalabov@gmail.com> Changes: head/sys/conf/files |
Created attachment 165546 [details] Teach mx25l SPI flash driver to interact with fdt_slicer and geom_flashmap The attached patch teaches the mx25l driver (sys/dev/flash/mx25l.c) to interact with sys/dev/fdt/fdt_slicer.c and sys/geom/geom_flashmap.c. This allows systems with SPI flash to benefit from the possibility to define flash 'slices' via FDT, just the same way that it's currently possible for CFI and NAND flashes.