Lines Matching refs:config
352 const struct alpha_pll_config *config)
356 regmap_write(regmap, PLL_L_VAL(pll), config->l);
357 regmap_write(regmap, PLL_ALPHA_VAL(pll), config->alpha);
358 regmap_write(regmap, PLL_CONFIG_CTL(pll), config->config_ctl_val);
362 config->config_ctl_hi_val);
365 regmap_write(regmap, PLL_ALPHA_VAL_U(pll), config->alpha_hi);
367 val = config->main_output_mask;
368 val |= config->aux_output_mask;
369 val |= config->aux2_output_mask;
370 val |= config->early_output_mask;
371 val |= config->pre_div_val;
372 val |= config->post_div_val;
373 val |= config->vco_val;
374 val |= config->alpha_en_mask;
375 val |= config->alpha_mode_mask;
377 mask = config->main_output_mask;
378 mask |= config->aux_output_mask;
379 mask |= config->aux2_output_mask;
380 mask |= config->early_output_mask;
381 mask |= config->pre_div_mask;
382 mask |= config->post_div_mask;
383 mask |= config->vco_mask;
387 if (config->test_ctl_mask)
389 config->test_ctl_mask,
390 config->test_ctl_val);
393 config->test_ctl_val);
395 if (config->test_ctl_hi_mask)
397 config->test_ctl_hi_mask,
398 config->test_ctl_hi_val);
401 config->test_ctl_hi_val);
1160 const struct alpha_pll_config *config)
1164 clk_alpha_pll_write_config(regmap, PLL_L_VAL(pll), config->l);
1165 clk_alpha_pll_write_config(regmap, PLL_FRAC(pll), config->alpha);
1167 config->config_ctl_val);
1169 config->config_ctl_hi_val);
1171 config->user_ctl_val);
1173 config->user_ctl_hi_val);
1175 config->test_ctl_val);
1177 config->test_ctl_hi_val);
1179 if (config->post_div_mask) {
1180 mask = config->post_div_mask;
1181 val = config->post_div_val;
1544 * @config: configuration to apply for pll
1547 const struct alpha_pll_config *config)
1558 clk_alpha_pll_write_config(regmap, PLL_L_VAL(pll), config->l);
1560 clk_alpha_pll_write_config(regmap, PLL_ALPHA_VAL(pll), config->alpha);
1562 config->config_ctl_val);
1564 config->config_ctl_hi_val);
1566 config->config_ctl_hi1_val);
1568 config->user_ctl_val);
1570 config->user_ctl_hi_val);
1572 config->user_ctl_hi1_val);
1574 config->test_ctl_val);
1576 config->test_ctl_hi_val);
1578 config->test_ctl_hi1_val);
1710 const struct alpha_pll_config *config)
1712 clk_alpha_pll_write_config(regmap, PLL_L_VAL(pll), config->l);
1713 clk_alpha_pll_write_config(regmap, PLL_ALPHA_VAL(pll), config->alpha);
1715 config->user_ctl_val);
1717 config->config_ctl_val);
1719 config->config_ctl_hi_val);
1721 config->test_ctl_val);
1723 config->test_ctl_hi_val);
1943 const struct alpha_pll_config *config)
1945 clk_alpha_pll_write_config(regmap, PLL_L_VAL(pll), config->l);
1946 clk_alpha_pll_write_config(regmap, PLL_ALPHA_VAL(pll), config->alpha);
1947 clk_alpha_pll_write_config(regmap, PLL_CONFIG_CTL(pll), config->config_ctl_val);
1948 clk_alpha_pll_write_config(regmap, PLL_CONFIG_CTL_U(pll), config->config_ctl_hi_val);
1949 clk_alpha_pll_write_config(regmap, PLL_CONFIG_CTL_U1(pll), config->config_ctl_hi1_val);
1950 clk_alpha_pll_write_config(regmap, PLL_USER_CTL(pll), config->user_ctl_val);
1951 clk_alpha_pll_write_config(regmap, PLL_USER_CTL_U(pll), config->user_ctl_hi_val);
1952 clk_alpha_pll_write_config(regmap, PLL_USER_CTL_U1(pll), config->user_ctl_hi1_val);
1953 clk_alpha_pll_write_config(regmap, PLL_TEST_CTL(pll), config->test_ctl_val);
1954 clk_alpha_pll_write_config(regmap, PLL_TEST_CTL_U(pll), config->test_ctl_hi_val);
1955 clk_alpha_pll_write_config(regmap, PLL_TEST_CTL_U1(pll), config->test_ctl_hi1_val);
2096 const struct alpha_pll_config *config)
2098 u32 lval = config->l;
2102 clk_alpha_pll_write_config(regmap, PLL_ALPHA_VAL(pll), config->alpha);
2103 clk_alpha_pll_write_config(regmap, PLL_CONFIG_CTL(pll), config->config_ctl_val);
2104 clk_alpha_pll_write_config(regmap, PLL_CONFIG_CTL_U(pll), config->config_ctl_hi_val);
2105 clk_alpha_pll_write_config(regmap, PLL_CONFIG_CTL_U1(pll), config->config_ctl_hi1_val);
2106 clk_alpha_pll_write_config(regmap, PLL_USER_CTL(pll), config->user_ctl_val);
2107 clk_alpha_pll_write_config(regmap, PLL_USER_CTL_U(pll), config->user_ctl_hi_val);
2108 clk_alpha_pll_write_config(regmap, PLL_TEST_CTL(pll), config->test_ctl_val);
2109 clk_alpha_pll_write_config(regmap, PLL_TEST_CTL_U(pll), config->test_ctl_hi_val);
2110 clk_alpha_pll_write_config(regmap, PLL_TEST_CTL_U1(pll), config->test_ctl_hi1_val);
2111 clk_alpha_pll_write_config(regmap, PLL_TEST_CTL_U2(pll), config->test_ctl_hi2_val);
2314 const struct alpha_pll_config *config)
2316 clk_alpha_pll_write_config(regmap, PLL_CONFIG_CTL(pll), config->config_ctl_val);
2317 clk_alpha_pll_write_config(regmap, PLL_CONFIG_CTL_U(pll), config->config_ctl_hi_val);
2318 clk_alpha_pll_write_config(regmap, PLL_CONFIG_CTL_U1(pll), config->config_ctl_hi1_val);
2319 clk_alpha_pll_write_config(regmap, PLL_TEST_CTL(pll), config->test_ctl_val);
2320 clk_alpha_pll_write_config(regmap, PLL_TEST_CTL_U(pll), config->test_ctl_hi_val);
2321 clk_alpha_pll_write_config(regmap, PLL_L_VAL(pll), config->l);
2322 clk_alpha_pll_write_config(regmap, PLL_USER_CTL(pll), config->user_ctl_val);
2323 clk_alpha_pll_write_config(regmap, PLL_USER_CTL_U(pll), config->user_ctl_hi_val);
2372 const struct alpha_pll_config *config)
2376 regmap_write(regmap, PLL_L_VAL(pll), config->l);
2377 regmap_write(regmap, PLL_ALPHA_VAL(pll), config->alpha);
2378 regmap_write(regmap, PLL_CONFIG_CTL(pll), config->config_ctl_val);
2382 config->config_ctl_hi_val);
2385 regmap_write(regmap, PLL_ALPHA_VAL_U(pll), config->alpha_hi);
2387 val = config->main_output_mask;
2388 val |= config->aux_output_mask;
2389 val |= config->aux2_output_mask;
2390 val |= config->early_output_mask;
2391 val |= config->pre_div_val;
2392 val |= config->post_div_val;
2393 val |= config->vco_val;
2394 val |= config->alpha_en_mask;
2395 val |= config->alpha_mode_mask;
2397 mask = config->main_output_mask;
2398 mask |= config->aux_output_mask;
2399 mask |= config->aux2_output_mask;
2400 mask |= config->early_output_mask;
2401 mask |= config->pre_div_mask;
2402 mask |= config->post_div_mask;
2403 mask |= config->vco_mask;
2404 mask |= config->alpha_en_mask;
2405 mask |= config->alpha_mode_mask;
2410 val_u = config->status_val << ALPHA_PLL_STATUS_REG_SHIFT;
2411 val_u |= config->lock_det;
2413 mask_u = config->status_mask;
2414 mask_u |= config->lock_det;
2417 regmap_write(regmap, PLL_TEST_CTL(pll), config->test_ctl_val);
2418 regmap_write(regmap, PLL_TEST_CTL_U(pll), config->test_ctl_hi_val);