m-labs / misoc

The original high performance and small footprint system-on-chip based on Migen™
https://m-labs.hk
Other
306 stars 85 forks source link

Standard 1 bit SPI mode for spi_flash not available? #87

Open danielkucera opened 6 years ago

danielkucera commented 6 years ago

I spent last 10 hours trying to figure out how to make my onboard M25P80 work with misoc but I didn't find a solution. It seem that it supports only standard 1bit SPI transfers while misoc only supports x2 and x4 modes. Is it really so? Would it be possible to support basic mode to cover all SPI flashes?

mithro commented 6 years ago

LiteX includes a 1bit SPI Flash version here -> https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/spi_flash.py#L114

kaolpr commented 2 years ago

I believe it's covered here, so will be available if PR will be merged: https://github.com/m-labs/misoc/pull/130/commits/7d9a09c0f22fb740e2672ccf500e0e8aff5b80b6