Merge pull request #542 from gsomlo/gls-sdcard-followup

software/bios: fixup sdclk command
This commit is contained in:
enjoy-digital 2020-05-27 19:04:18 +02:00 committed by GitHub
commit 25d2e7c92f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -90,13 +90,13 @@ void sdclk_set_clk(unsigned int freq) {
while(!(sdclk_status_read() & CLKGEN_STATUS_LOCKED)); 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) { static void sdclk_mmcm_write(unsigned int adr, unsigned int data) {
mmcm_drp_adr_write(adr); sdclk_mmcm_drp_adr_write(adr);
mmcm_drp_dat_w_write(data); sdclk_mmcm_drp_dat_w_write(data);
mmcm_drp_write_write(1); sdclk_mmcm_drp_write_write(1);
while(!mmcm_drp_drdy_read()); while(!sdclk_mmcm_drp_drdy_read());
} }