From: Florent Kermarrec Date: Thu, 25 Jun 2020 11:48:49 +0000 (+0200) Subject: liblitesdcard/sdcard: decode cid only when SDCARD_DEBUG is set. X-Git-Tag: 24jan2021_ls180~136 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e8f84c96a713fad4ba727e0f0d3237375aad5842;p=litex.git liblitesdcard/sdcard: decode cid only when SDCARD_DEBUG is set. --- diff --git a/litex/soc/software/liblitesdcard/sdcard.c b/litex/soc/software/liblitesdcard/sdcard.c index b3281959..039c5f8b 100644 --- a/litex/soc/software/liblitesdcard/sdcard.c +++ b/litex/soc/software/liblitesdcard/sdcard.c @@ -440,8 +440,9 @@ int sdcard_init(void) { /* send identification */ sdcard_all_send_cid(); +#ifdef SDCARD_DEBUG sdcard_decode_cid(); - +#endif /* set relative card address */ sdcard_set_relative_address(); rca = (sdcard_response[3] >> 16) & 0xffff;