Merge pull request #430 from gsomlo/gls-sdclk-stub

bios/sdcard: provide sdclk_set_clk() stub for clocker-less targets
This commit is contained in:
enjoy-digital 2020-03-19 09:05:02 +01:00 committed by GitHub
commit 9e1cd84296
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -70,7 +70,7 @@ void sdclk_set_clk(unsigned int freq) {
while(!(sdclk_status_read() & CLKGEN_STATUS_LOCKED));
}
#else
#elif CSR_SDCLK_MMCM_DRP_WRITE_ADDR
static void sdclk_mmcm_write(unsigned int adr, unsigned int data) {
sdclk_mmcm_drp_adr_write(adr);
@ -133,6 +133,12 @@ void sdclk_set_clk(unsigned int freq) {
sdclk_set_config(clk_m, clk_d);
}
#else
void sdclk_set_clk(unsigned int freq) {
printf("Unimplemented!\n");
}
#endif
/* command utils */