clk: mediatek: add support to configure clock driver parent
[platform/kernel/u-boot.git] / drivers / clk / mpc83xx_clk.h
index 8a31a4c..c06a51e 100644 (file)
@@ -317,7 +317,7 @@ static inline u32 get_pci_sync_in(immap_t *im)
        u8 clkin_div;
 
        clkin_div = (get_spmr(im) & SPMR_CKID) >> SPMR_CKID_SHIFT;
-       return CONFIG_SYS_CLK_FREQ / (1 + clkin_div);
+       return get_board_sys_clk() / (1 + clkin_div);
 }
 
 /**
@@ -331,7 +331,7 @@ static inline u32 get_csb_clk(immap_t *im)
        u8 spmf;
 
        spmf = (get_spmr(im) & SPMR_SPMF) >> SPMR_SPMF_SHIFT;
-       return CONFIG_SYS_CLK_FREQ * spmf;
+       return get_board_sys_clk() * spmf;
 }
 
 /**