From 3770195048f3ed8911dfd2b3395ac1f42d5b52e7 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 4 Mar 2020 18:33:08 +0100 Subject: [PATCH] bios/sdcard: update sdclk_mmcm_write with LiteSDCard clocker changes. --- litex/soc/software/bios/sdcard.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/litex/soc/software/bios/sdcard.c b/litex/soc/software/bios/sdcard.c index 096643448..a732e063e 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()); }