litedram: Add sdcard to soc features

Signed-off-by: Joel Stanley <joel@jms.id.au>
remove-potato-uart
Joel Stanley 3 years ago
parent c198b2b82e
commit bc3995804f

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

Loading…
Cancel
Save