litedram: Add sdcard to soc features
authorJoel Stanley <joel@jms.id.au>
Tue, 10 Aug 2021 09:19:29 +0000 (18:49 +0930)
committerJoel Stanley <joel@jms.id.au>
Tue, 10 Aug 2021 09:19:29 +0000 (18:49 +0930)
Signed-off-by: Joel Stanley <joel@jms.id.au>
litedram/gen-src/sdram_init/main.c

index 4917e306142ca06e11836b717e2b324a752b730b..28a259987f4e937a8ad95588ff59e485970a278c 100644 (file)
@@ -262,6 +262,8 @@ uint64_t main(void)
                printf("SPIFLASH ");
        if (ftr & SYS_REG_INFO_HAS_LITEETH)
                printf("ETHERNET ");
+       if (ftr & SYS_REG_INFO_HAS_LITESDCARD)
+               printf("SDCARD ");
        printf("\n");
        if (ftr & SYS_REG_INFO_HAS_BRAM) {
                val = readq(SYSCON_BASE + SYS_REG_BRAMINFO) & SYS_REG_BRAMINFO_SIZE_MASK;