Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103042589
D31562.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
547 B
Referenced Files
None
Subscribers
None
D31562.diff
View Options
diff --git a/sys/riscv/sifive/sifive_spi.c b/sys/riscv/sifive/sifive_spi.c
--- a/sys/riscv/sifive/sifive_spi.c
+++ b/sys/riscv/sifive/sifive_spi.c
@@ -219,6 +219,9 @@
SFSPI_WRITE(sc, SFSPI_REG_SCKDIV, sckdiv);
switch (mode) {
+ case SPIBUS_MODE_NONE:
+ sckmode = 0;
+ break;
case SPIBUS_MODE_CPHA:
sckmode = SFSPI_SCKMODE_PHA;
break;
@@ -228,6 +231,8 @@
case SPIBUS_MODE_CPOL_CPHA:
sckmode = SFSPI_SCKMODE_PHA | SFSPI_SCKMODE_POL;
break;
+ default:
+ return (EINVAL);
}
SFSPI_WRITE(sc, SFSPI_REG_SCKMODE, sckmode);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 21, 4:39 AM (22 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14754601
Default Alt Text
D31562.diff (547 B)
Attached To
Mode
D31562: Add support for spi flash on SiFive Unmatched.
Attached
Detach File
Event Timeline
Log In to Comment