summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/ccm-imx31.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx31/ccm-imx31.h')
-rw-r--r--firmware/target/arm/imx31/ccm-imx31.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/firmware/target/arm/imx31/ccm-imx31.h b/firmware/target/arm/imx31/ccm-imx31.h
index e95891255d..400f6cad5d 100644
--- a/firmware/target/arm/imx31/ccm-imx31.h
+++ b/firmware/target/arm/imx31/ccm-imx31.h
@@ -93,11 +93,21 @@ enum IMX31_PLLS
93 NUM_PLLS, 93 NUM_PLLS,
94}; 94};
95 95
96
97/* Return the current source pll for MCU */
98enum IMX31_PLLS ccm_get_src_pll(void);
99
100/* Decode PLL output frequency from register value */
101unsigned int ccm_calc_pll_rate(unsigned int infreq, unsigned long regval);
102
96/* Get the PLL reference clock frequency in HZ */ 103/* Get the PLL reference clock frequency in HZ */
97unsigned int ccm_get_pll_ref_clk(void); 104unsigned int ccm_get_pll_ref_clk_rate(void);
98 105
99/* Return PLL frequency in HZ */ 106/* Return PLL frequency in HZ */
100unsigned int ccm_get_pll(enum IMX31_PLLS pll); 107unsigned int ccm_get_pll_rate(enum IMX31_PLLS pll);
108
109/* Return MCU frequency in HZ */
110unsigned int ccm_get_mcu_clk(void);
101 111
102/* Return ipg_clk in HZ */ 112/* Return ipg_clk in HZ */
103unsigned int ccm_get_ipg_clk(void); 113unsigned int ccm_get_ipg_clk(void);
@@ -108,4 +118,7 @@ unsigned int ccm_get_ahb_clk(void);
108/* Return the ATA frequency in HZ */ 118/* Return the ATA frequency in HZ */
109unsigned int ccm_get_ata_clk(void); 119unsigned int ccm_get_ata_clk(void);
110 120
121/* Write new values to the current PLL and post-dividers */
122void ccm_set_mcupll_and_pdr(unsigned long pllctl, unsigned long pdr);
123
111#endif /* _CCM_IMX31_H_ */ 124#endif /* _CCM_IMX31_H_ */