HomeFreeBSD

sifive_spi: Add missing case for SPIBUS_MODE_NONE

Description

sifive_spi: Add missing case for SPIBUS_MODE_NONE

Otherwise sckmode is left uninitialised, not zero. This mode is used for
the on-board flash on the HiFive Unmatched board. Whilst here, catch
unknown modes and return an error rather than silently continuing.

Reviewed by: riscv, jrtc27
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31562

Details

Provenance
skiboAuthored on Aug 30 2021, 8:39 PM
jrtc27Committed on Aug 30 2021, 10:38 PM
Reviewer
riscv
Differential Revision
D31562: Add support for spi flash on SiFive Unmatched.
Parents
rG64f09f234665: cxgbei: Limit T5 transmit data segments to 15k.
Branches
Unknown
Tags
Unknown