57uint32_t
ccm_get_pll_pfd(uint32_t pfd_sel, uint32_t pll_pfd, uint32_t pll_clk);
68 uint32_t offset = (uint32_t)gr / 16;
69 uint32_t gr_mask = 0x3 << ((gr % 16) * 2);
82 uint32_t offset = (uint32_t)gr / 16;
83 uint32_t gr_mask = 0x3 << ((gr % 16) * 2);
102 uint64_t pll_pfd_clk;
103 uint32_t pll_pfd_frac = pll_pfd;
127 pll_pfd_clk = pll_clk;
129 pll_pfd_clk /= pll_pfd_frac;
131 return (uint32_t)pll_pfd_clk;
157 uint32_t pll_pfd_sel;
#define ANADIG_PLL_PFD1_FRAC_MASK
#define ANADIG_PLL_PFD3_FRAC_MASK
#define ANADIG_PLL_PFD3_FRAC_SHIFT
#define ANADIG_PLL_PFD4_FRAC_SHIFT
#define ANADIG_PLL_PFD1_FRAC_SHIFT
#define ANADIG_PLL_PFD4_FRAC_MASK
#define ANADIG_PLL_PFD2_FRAC_MASK
#define ANADIG_PLL_PFD2_FRAC_SHIFT
#define CCM_CCSR_SYS_CLK_SEL_MASK
#define CCM_CCSR_PLL_PFD_CLK_SEL_PFD1
#define CCM_CACRR_BUS_CLK_DIV_MASK
#define CCM_CCSR_PLL1_PFD_CLK_SEL_SHIFT
#define CCM_CACRR_ARM_CLK_DIV_MASK
#define CCM_CCSR_PLL1_PFD_CLK_SEL_MASK
#define CCM_CCSR_SYS_CLK_SEL_SLOW
#define CCM_CACRR_IPG_CLK_DIV_SHIFT
#define CCM_CCSR_PLL_PFD_CLK_SEL_PFD3
#define CCM_CCSR_SYS_CLK_SEL_FAST
#define CCM_CCSR_PLL_PFD_CLK_SEL_PFD4
#define CCM_CCSR_SYS_CLK_SEL_PLL3
#define CCM_CCSR_SYS_CLK_SEL_PLL2_PFD
#define CCM_CCSR_PLL2_PFD_CLK_SEL_MASK
#define CCM_CCSR_PLL_PFD_CLK_SEL_PFD2
#define CCM_CCSR_SYS_CLK_SEL_PLL2
#define CCM_CCSR_PLL2_PFD_CLK_SEL_SHIFT
#define CCM_CACRR_IPG_CLK_DIV_MASK
#define CCM_CCSR_SYS_CLK_SEL_PLL1_PFD
#define CCM_CACRR_BUS_CLK_DIV_SHIFT
#define CCM_CCSR_PLL_PFD_CLK_SEL_MAIN
static const uint32_t pll3_main_clk
static const uint32_t pll2_main_clk
void ccm_clock_gate_enable(enum ccm_clock_gate gr)
Enable clock of given device.
static const uint32_t pll1_main_clk
uint32_t ccm_get_pll_pfd(uint32_t pfd_sel, uint32_t pll_pfd, uint32_t pll_clk)
Calculate PFD clock.
uint32_t ccm_platform_bus_clk
void ccm_calculate_clocks()
Calculate clocks.
void ccm_clock_gate_disable(enum ccm_clock_gate gr)
Disable clock of given device.