From: Gabriel Somlo Date: Wed, 27 May 2020 16:38:59 +0000 (-0400) Subject: software/bios: fixup sdclk command X-Git-Tag: 24jan2021_ls180~275^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6da98ca14df992d86bc3b79182258e5e9ed1d8fd;p=litex.git software/bios: fixup sdclk command --- diff --git a/litex/soc/software/liblitesdcard/sdcard.c b/litex/soc/software/liblitesdcard/sdcard.c index f21f53c6..477fbb5f 100644 --- a/litex/soc/software/liblitesdcard/sdcard.c +++ b/litex/soc/software/liblitesdcard/sdcard.c @@ -90,13 +90,13 @@ void sdclk_set_clk(unsigned int freq) { while(!(sdclk_status_read() & CLKGEN_STATUS_LOCKED)); } -#elif CSR_MMCM_DRP_WRITE_ADDR +#elif CSR_SDCLK_MMCM_DRP_WRITE_ADDR static void sdclk_mmcm_write(unsigned int adr, unsigned int data) { - mmcm_drp_adr_write(adr); - mmcm_drp_dat_w_write(data); - mmcm_drp_write_write(1); - while(!mmcm_drp_drdy_read()); + sdclk_mmcm_drp_adr_write(adr); + sdclk_mmcm_drp_dat_w_write(data); + sdclk_mmcm_drp_write_write(1); + while(!sdclk_mmcm_drp_drdy_read()); }