Lines Matching +full:osc +full:- +full:bypass

1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/clk-provider.h>
6 #include <dt-bindings/clock/at91.h>
340 bool bypass; in at91sam926x_pmc_setup() local
342 i = of_property_match_string(np, "clock-names", "slow_xtal"); in at91sam926x_pmc_setup()
348 i = of_property_match_string(np, "clock-names", "main_xtal"); in at91sam926x_pmc_setup()
358 ndck(data->sck, data->num_sck), in at91sam926x_pmc_setup()
359 ndck(data->pck, data->num_pck), in at91sam926x_pmc_setup()
360 0, data->num_progck); in at91sam926x_pmc_setup()
364 bypass = of_property_read_bool(np, "atmel,osc-bypass"); in at91sam926x_pmc_setup()
367 bypass); in at91sam926x_pmc_setup()
375 at91sam9260_pmc->chws[PMC_MAIN] = hw; in at91sam926x_pmc_setup()
377 if (data->has_slck) { in at91sam926x_pmc_setup()
392 at91sam9260_pmc->chws[PMC_SLOW] = hw; in at91sam926x_pmc_setup()
399 data->plla_layout, in at91sam926x_pmc_setup()
400 data->plla_characteristics); in at91sam926x_pmc_setup()
404 at91sam9260_pmc->chws[PMC_PLLACK] = hw; in at91sam926x_pmc_setup()
407 data->pllb_layout, in at91sam926x_pmc_setup()
408 data->pllb_characteristics); in at91sam926x_pmc_setup()
412 at91sam9260_pmc->chws[PMC_PLLBCK] = hw; in at91sam926x_pmc_setup()
421 data->mck_characteristics, in at91sam926x_pmc_setup()
429 data->mck_characteristics, in at91sam926x_pmc_setup()
435 at91sam9260_pmc->chws[PMC_MCK] = hw; in at91sam926x_pmc_setup()
445 for (i = 0; i < data->num_progck; i++) { in at91sam926x_pmc_setup()
457 at91sam9260_pmc->pchws[i] = hw; in at91sam926x_pmc_setup()
460 for (i = 0; i < data->num_sck; i++) { in at91sam926x_pmc_setup()
461 hw = at91_clk_register_system(regmap, data->sck[i].n, in at91sam926x_pmc_setup()
462 data->sck[i].p, NULL, in at91sam926x_pmc_setup()
463 data->sck[i].id, 0); in at91sam926x_pmc_setup()
467 at91sam9260_pmc->shws[data->sck[i].id] = hw; in at91sam926x_pmc_setup()
470 for (i = 0; i < data->num_pck; i++) { in at91sam926x_pmc_setup()
472 data->pck[i].n, in at91sam926x_pmc_setup()
474 data->pck[i].id); in at91sam926x_pmc_setup()
478 at91sam9260_pmc->phws[data->pck[i].id] = hw; in at91sam926x_pmc_setup()
494 CLK_OF_DECLARE(at91sam9260_pmc, "atmel,at91sam9260-pmc", at91sam9260_pmc_setup);
501 CLK_OF_DECLARE(at91sam9261_pmc, "atmel,at91sam9261-pmc", at91sam9261_pmc_setup);
508 CLK_OF_DECLARE(at91sam9263_pmc, "atmel,at91sam9263-pmc", at91sam9263_pmc_setup);
515 CLK_OF_DECLARE(at91sam9g20_pmc, "atmel,at91sam9g20-pmc", at91sam9g20_pmc_setup);