liblitesdcard/sdcard: decode cid only when SDCARD_DEBUG is set.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 25 Jun 2020 11:48:49 +0000 (13:48 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 25 Jun 2020 11:48:49 +0000 (13:48 +0200)
litex/soc/software/liblitesdcard/sdcard.c

index b3281959cd5d6c40621efe9d284eb70b3cd4786d..039c5f8b0334b665a349299d4e871b64f7a31a57 100644 (file)
@@ -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;