From: Florent Kermarrec Date: Wed, 4 Mar 2020 17:33:08 +0000 (+0100) Subject: bios/sdcard: update sdclk_mmcm_write with LiteSDCard clocker changes. X-Git-Tag: 24jan2021_ls180~598 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3770195048f3ed8911dfd2b3395ac1f42d5b52e7;p=litex.git bios/sdcard: update sdclk_mmcm_write with LiteSDCard clocker changes. --- diff --git a/litex/soc/software/bios/sdcard.c b/litex/soc/software/bios/sdcard.c index 09664344..a732e063 100644 --- a/litex/soc/software/bios/sdcard.c +++ b/litex/soc/software/bios/sdcard.c @@ -73,10 +73,10 @@ void sdclk_set_clk(unsigned int freq) { #else static void sdclk_mmcm_write(unsigned int adr, unsigned int data) { - sdclk_mmcm_adr_write(adr); - sdclk_mmcm_dat_w_write(data); - sdclk_mmcm_write_write(1); - while(!sdclk_mmcm_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()); }