From 067cf50ed50300f26645372ca83f1bcdfb85f82b Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Sat, 10 Mar 2018 23:17:09 +0100 Subject: [PATCH] dragon-nx32: SPI fast sector read: Initiate bit shifting after FRX enable In the fast receive mode (FRX) of the 65SPI interface a read of the data register triggers reading in the next byte over SPI. So after going into this mode the first read will return the value that was already there, before shifting in of the new value ensues. Signed-off-by: Tormod Volden --- Kernel/platform-dragon-nx32/spi.s | 1 + 1 file changed, 1 insertion(+) diff --git a/Kernel/platform-dragon-nx32/spi.s b/Kernel/platform-dragon-nx32/spi.s index 3ba1774a..23104a84 100644 --- a/Kernel/platform-dragon-nx32/spi.s +++ b/Kernel/platform-dragon-nx32/spi.s @@ -111,6 +111,7 @@ _sd_spi_receive_sector: jsr map_process_always rdspi: lda #0x14 ; FRX on, external clock on sta