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 }, }; 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);