Lines Matching refs:clk_sel

490 	u32 clk_sel = readl(&scu->clk_sel4);  in ast2600_get_sdio_clk_rate()  local
491 u32 div = (clk_sel >> 28) & 0x7; in ast2600_get_sdio_clk_rate()
494 if (clk_sel & BIT(8)) in ast2600_get_sdio_clk_rate()
510 u32 clk_sel = readl(&scu->clk_sel1); in ast2600_get_emmc_clk_rate() local
511 u32 div = (clk_sel >> 12) & 0x7; in ast2600_get_emmc_clk_rate()
1273 u32 clk_sel = readl(&scu->clk_sel1); in ast2600_configure_rsa_ecc_clk() local
1276 clk_sel |= SCU_CLK_ECC_RSA_FROM_HPLL_CLK; in ast2600_configure_rsa_ecc_clk()
1277 clk_sel &= ~SCU_CLK_ECC_RSA_CLK_MASK; in ast2600_configure_rsa_ecc_clk()
1278 clk_sel |= SCU_CLK_ECC_RSA_CLK_DIV(3); in ast2600_configure_rsa_ecc_clk()
1280 writel(clk_sel, &scu->clk_sel1); in ast2600_configure_rsa_ecc_clk()
1310 u32 clk_sel = readl(&scu->clk_sel4); in ast2600_enable_extsdclk() local
1327 clk_sel &= ~SCU_CLK_SD_MASK; in ast2600_enable_extsdclk()
1328 clk_sel |= SCU_CLK_SD_DIV(i) | SCU_CLK_SD_FROM_APLL_CLK; in ast2600_enable_extsdclk()
1329 writel(clk_sel, &scu->clk_sel4); in ast2600_enable_extsdclk()
1364 u32 clk_sel = readl(&scu->clk_sel1); in ast2600_enable_extemmcclk() local
1388 clk_sel &= ~SCU_CLK_EMMC_MASK; in ast2600_enable_extemmcclk()
1389 clk_sel |= SCU_CLK_EMMC_DIV(i) | SCU_CLK_EMMC_FROM_MPLL_CLK; in ast2600_enable_extemmcclk()
1390 writel(clk_sel, &scu->clk_sel1); in ast2600_enable_extemmcclk()
1402 clk_sel &= ~SCU_CLK_EMMC_MASK; in ast2600_enable_extemmcclk()
1403 clk_sel |= SCU_CLK_EMMC_DIV(i); in ast2600_enable_extemmcclk()
1404 writel(clk_sel, &scu->clk_sel1); in ast2600_enable_extemmcclk()