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

(cherry picked from commit f5d78bea1f699c05e1694505088e61d22b8fb1f5)

Details

Provenance
skiboAuthored on Aug 30 2021, 8:39 PM
jrtc27Committed on Sep 7 2021, 12:08 PM
Reviewer
riscv
Differential Revision
D31562: Add support for spi flash on SiFive Unmatched.
Parents
rG712920c3c780: Revert "Mark LLDB/CLANG_BOOTSTRAP/LLD_BOOTSTRAP as broken on non-FreeBSD for…
Branches
Unknown
Tags
Unknown