Targets which lack an adjustable clocker will not expose the required
registers. Provide a stub sdclk_set_clk() routine for those situations.
Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
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);
sdclk_set_config(clk_m, clk_d);
}
+#else
+
+void sdclk_set_clk(unsigned int freq) {
+ printf("Unimplemented!\n");
+}
+
#endif
/* command utils */