projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
696b31e
)
software/bios: fixup sdclk command
author
Gabriel Somlo
<gsomlo@gmail.com>
Wed, 27 May 2020 16:38:59 +0000
(12:38 -0400)
committer
Gabriel Somlo
<gsomlo@gmail.com>
Wed, 27 May 2020 16:38:59 +0000
(12:38 -0400)
litex/soc/software/liblitesdcard/sdcard.c
patch
|
blob
|
history
diff --git
a/litex/soc/software/liblitesdcard/sdcard.c
b/litex/soc/software/liblitesdcard/sdcard.c
index f21f53c6edbcc326492f8428fc4a855a495e2cd0..477fbb5fbac48cde3b0546aa53485930779f0dff 100644
(file)
--- a/
litex/soc/software/liblitesdcard/sdcard.c
+++ b/
litex/soc/software/liblitesdcard/sdcard.c
@@
-90,13
+90,13
@@
void sdclk_set_clk(unsigned int freq) {
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) {
- mmcm_drp_adr_write(adr);
- mmcm_drp_dat_w_write(data);
- mmcm_drp_write_write(1);
- while(!mmcm_drp_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());
}