bios/sdcard: update sdclk_mmcm_write with LiteSDCard clocker changes.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 4 Mar 2020 17:33:08 +0000 (18:33 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 4 Mar 2020 17:33:08 +0000 (18:33 +0100)
litex/soc/software/bios/sdcard.c

index 09664344823dbfb5f24be9b22c9d9ee8ac74fa00..a732e063ece61e98a5a6556bd2d554ccbdc7cb71 100644 (file)
@@ -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());
 }