From 2ac7e0b97825c2ecb45c9cadf7d5abb299672e81 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 20 Apr 2021 14:15:55 +0200 Subject: [PATCH] software/liblitesdcard: Update with LiteSDCard changes (SDCARD_CTRL_RESPONSE_SHORT_BUSY is now directly a supported command). --- litex/soc/software/liblitesdcard/sdcard.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/litex/soc/software/liblitesdcard/sdcard.h b/litex/soc/software/liblitesdcard/sdcard.h index b8373bf9e..d94ab7a97 100644 --- a/litex/soc/software/liblitesdcard/sdcard.h +++ b/litex/soc/software/liblitesdcard/sdcard.h @@ -48,14 +48,10 @@ #define SDCARD_CTRL_DATA_TRANSFER_READ 1 #define SDCARD_CTRL_DATA_TRANSFER_WRITE 2 -#define SDCARD_CTRL_RESPONSE_NONE 0 -#define SDCARD_CTRL_RESPONSE_SHORT 1 -#define SDCARD_CTRL_RESPONSE_LONG 2 - -#define SDCARD_CTRL_RESPONSE_BUSY 4 - -#define SDCARD_CTRL_RESPONSE_SHORT_BUSY (SDCARD_CTRL_RESPONSE_SHORT | \ - SDCARD_CTRL_RESPONSE_BUSY) +#define SDCARD_CTRL_RESPONSE_NONE 0 +#define SDCARD_CTRL_RESPONSE_SHORT 1 +#define SDCARD_CTRL_RESPONSE_LONG 2 +#define SDCARD_CTRL_RESPONSE_SHORT_BUSY 3 /*-----------------------------------------------------------------------*/ /* SDCard command helpers */