mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
bios/sdcard: update sdclk_mmcm_write with LiteSDCard clocker changes.
This commit is contained in:
parent
4c83c975b1
commit
3770195048
1 changed files with 4 additions and 4 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue