summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
Diffstat (limited to 'bsp')
-rw-r--r--bsp/include/sifive/devices/spi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsp/include/sifive/devices/spi.h b/bsp/include/sifive/devices/spi.h
index 916d86b..80ef345 100644
--- a/bsp/include/sifive/devices/spi.h
+++ b/bsp/include/sifive/devices/spi.h
@@ -30,8 +30,8 @@
/* Fields */
-#define SPI_SCK_POL 0x1
-#define SPI_SCK_PHA 0x2
+#define SPI_SCK_PHA 0x1
+#define SPI_SCK_POL 0x2
#define SPI_FMT_PROTO(x) ((x) & 0x3)
#define SPI_FMT_ENDIAN(x) (((x) & 0x1) << 2)