|
@@ -42,9 +42,11 @@ int cm_wait_for_fsm(void)
|
|
|
|
|
|
int set_cpu_clk_info(void)
|
|
int set_cpu_clk_info(void)
|
|
{
|
|
{
|
|
|
|
+#if defined(CONFIG_TARGET_SOCFPGA_GEN5)
|
|
/* Calculate the clock frequencies required for drivers */
|
|
/* Calculate the clock frequencies required for drivers */
|
|
cm_get_l4_sp_clk_hz();
|
|
cm_get_l4_sp_clk_hz();
|
|
cm_get_mmc_controller_clk_hz();
|
|
cm_get_mmc_controller_clk_hz();
|
|
|
|
+#endif
|
|
|
|
|
|
gd->bd->bi_arm_freq = cm_get_mpu_clk_hz() / 1000000;
|
|
gd->bd->bi_arm_freq = cm_get_mpu_clk_hz() / 1000000;
|
|
gd->bd->bi_dsp_freq = 0;
|
|
gd->bd->bi_dsp_freq = 0;
|