Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133505983
D31562.id93762.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D31562.id93762.diff
View Options
Index: sys/dev/flash/mx25l.c
===================================================================
--- sys/dev/flash/mx25l.c
+++ sys/dev/flash/mx25l.c
@@ -152,6 +152,9 @@
/* GigaDevice */
{ "gd25q64", 0xc8, 0x4017, 64 * 1024, 128, FL_ERASE_4K },
{ "gd25q128", 0xc8, 0x4018, 64 * 1024, 256, FL_ERASE_4K },
+
+ /* Integrated Silicon Solution */
+ { "is25wp256", 0x9d, 0x7019, 64 * 1024, 512, FL_ERASE_4K | FL_ENABLE_4B_ADDR},
};
static int
Index: sys/riscv/conf/GENERIC
===================================================================
--- sys/riscv/conf/GENERIC
+++ sys/riscv/conf/GENERIC
@@ -152,6 +152,7 @@
# SPI
device spibus
device spigen
+device mx25l
# Uncomment for memory disk
# options MD_ROOT
Index: sys/riscv/sifive/sifive_spi.c
===================================================================
--- sys/riscv/sifive/sifive_spi.c
+++ sys/riscv/sifive/sifive_spi.c
@@ -228,6 +228,10 @@
case SPIBUS_MODE_CPOL_CPHA:
sckmode = SFSPI_SCKMODE_PHA | SFSPI_SCKMODE_POL;
break;
+ case SPIBUS_MODE_NONE:
+ default:
+ sckmode = 0;
+ break;
}
SFSPI_WRITE(sc, SFSPI_REG_SCKMODE, sckmode);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 27, 6:53 AM (18 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24278671
Default Alt Text
D31562.id93762.diff (1 KB)
Attached To
Mode
D31562: Add support for spi flash on SiFive Unmatched.
Attached
Detach File
Event Timeline
Log In to Comment