Home | History | Annotate | Download | only in clk

Lines Matching defs:clkdiv

1421 static int set_clkdiv(unsigned int clkdiv, u32 address)
1426 clrsetbits_le32(address, RCC_DIVR_DIV_MASK, clkdiv & RCC_DIVR_DIV_MASK);
1430 pr_err("CLKDIV %x start failed @ 0x%x: 0x%x\n",
1431 clkdiv, address, readl(address));
1437 u32 clksrc, u32 clkdiv)
1454 clkdiv << RCC_MCOCFG_MCODIV_SHIFT);
1500 unsigned int clkdiv[CLKDIV_NB];
1515 ret = dev_read_u32_array(dev, "st,clkdiv", clkdiv, CLKDIV_NB);
1517 debug("field st,clkdiv invalid: error %d\n", ret);
1538 stm32mp1_mco_csg(priv, clksrc[CLKSRC_MCO1], clkdiv[CLKDIV_MCO1]);
1539 stm32mp1_mco_csg(priv, clksrc[CLKSRC_MCO2], clkdiv[CLKDIV_MCO2]);
1596 writel(clkdiv[CLKDIV_MPU] & RCC_DIVR_DIV_MASK, rcc + RCC_MPCKDIVR);
1597 set_clkdiv(clkdiv[CLKDIV_AXI], rcc + RCC_AXIDIVR);
1598 set_clkdiv(clkdiv[CLKDIV_APB4], rcc + RCC_APB4DIVR);
1599 set_clkdiv(clkdiv[CLKDIV_APB5], rcc + RCC_APB5DIVR);
1600 set_clkdiv(clkdiv[CLKDIV_MCU], rcc + RCC_MCUDIVR);
1601 set_clkdiv(clkdiv[CLKDIV_APB1], rcc + RCC_APB1DIVR);
1602 set_clkdiv(clkdiv[CLKDIV_APB2], rcc + RCC_APB2DIVR);
1603 set_clkdiv(clkdiv[CLKDIV_APB3], rcc + RCC_APB3DIVR);
1606 writel(clkdiv[CLKDIV_RTC] & RCC_DIVR_DIV_MASK, rcc + RCC_RTCDIVR);