/* Get the oscillator frequency, from the corresponding hardware configuration field. T20 has 4 frequencies that it supports.  */
enum clock_osc_freq clock_get_osc_freq(void)
/* Get the oscillator frequency, from the corresponding hardware configuration field. T20 has 4 frequencies that it supports.  */
enum clock_osc_freq clock_get_osc_freq(void)
{
	struct clk_rst_ctlr *clkrst =
			(struct clk_rst_ctlr *)NV_PA_CLK_RST_BASE;
	u32 reg;
	reg = readl(&clkrst->crc_osc_ctrl);
	return (reg & OSC_FREQ_MASK) >> OSC_FREQ_SHIFT;
}