bios/sdcard: update sdclk_mmcm_write with LiteSDCard clocker changes.

This commit is contained in:
Florent Kermarrec 2020-03-04 18:33:08 +01:00
parent 4c83c975b1
commit 3770195048
1 changed files with 4 additions and 4 deletions

View 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());
}