-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Description
I'm using a SPI flash chip* on a custom board that turns out to have a slightly different process to enable Quad-SPI mode than drivers/memory/spiflash.c
- in my case, the two bytes of the status register need to be written as two separate operations, rather than a single operation with two bytes. More generally, other SPI flash chips may have different opcodes again. So it would be useful to have the chip initialisation either configurable in mpconfigboard.h
, or alternatively, having different spiflash driver files for different chips, and be able to specify which driver in the board config. Any thoughts about the best approach here?
* The AT25SF321, which, on the surface seems much the same as the AT25SF641 on the PYBD (including the SR write operation), and the datasheets says this as well, but turns out the AT25SF321B (note the B on the end) has the split SR write operation.