freebsd-dev/sys/riscv
Thomas Skibo f5d78bea1f 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
2021-08-30 23:38:02 +01:00
..
conf riscv: Sync NOTES with GENERIC changes 2021-08-07 23:20:38 +01:00
include Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00
riscv Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00
sifive sifive_spi: Add missing case for SPIBUS_MODE_NONE 2021-08-30 23:38:02 +01:00