Home
last modified time | relevance | path

Searched refs:clkout_nr (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/samples/drivers/clock_control_litex/src/
Dmain.c73 setup.clkout_nr = i; in litex_clk_test_getters()
87 .clkout_nr = LITEX_CLK_TEST_CLK1, in litex_clk_test_single()
93 .clkout_nr = LITEX_CLK_TEST_CLK2, in litex_clk_test_single()
120 .clkout_nr = LITEX_CLK_TEST_CLK1, in litex_clk_test_freq()
132 setup.clkout_nr = LITEX_CLK_TEST_CLK1; in litex_clk_test_freq()
151 setup.clkout_nr = LITEX_CLK_TEST_CLK2; in litex_clk_test_freq()
160 setup.clkout_nr = LITEX_CLK_TEST_CLK1; in litex_clk_test_freq()
167 setup.clkout_nr = LITEX_CLK_TEST_CLK2; in litex_clk_test_freq()
182 .clkout_nr = LITEX_CLK_TEST_CLK1, in litex_clk_test_phase()
188 .clkout_nr = LITEX_CLK_TEST_CLK2, in litex_clk_test_phase()
[all …]
/Zephyr-latest/include/zephyr/drivers/clock_control/
Dclock_control_litex.h38 uint8_t clkout_nr; member
/Zephyr-latest/drivers/clock_control/
Dclock_control_litex.c360 uint8_t clkout_nr = lcko->id; in litex_clk_get_clkout_divider() local
363 ret = litex_clk_get_DO(drp_addr.clkout[clkout_nr].reg1, &div); in litex_clk_get_clkout_divider()
367 ret = litex_clk_get_DO(drp_addr.clkout[clkout_nr].reg2, &frac); in litex_clk_get_clkout_divider()
553 static int litex_clk_set_clock(uint8_t clkout_nr, uint16_t mask_reg1, in litex_clk_set_clock() argument
562 drp_addr.clkout[clkout_nr].reg2); in litex_clk_set_clock()
569 drp_addr.clkout[clkout_nr].reg1); in litex_clk_set_clock()
851 uint8_t clkout_nr, high_time, edge, no_cnt, frac_en, frac_cnt; in litex_clk_get_duty_cycle() local
853 clkout_nr = lcko->id; in litex_clk_get_duty_cycle()
855 ret = litex_clk_get_DO(drp_addr.clkout[clkout_nr].reg2, &clkout_reg2); in litex_clk_get_duty_cycle()
872 ret = litex_clk_get_DO(drp_addr.clkout[clkout_nr].reg1, &clkout_reg1); in litex_clk_get_duty_cycle()
[all …]
/Zephyr-latest/samples/drivers/clock_control_litex/
DREADME.rst43 …``reg`` properties in ``clk0`` and ``clk1`` nodes reference the clock output number (``clkout_nr``)
58 .clkout_nr = 0,
66 LOG_ERR("Set CLKOUT%d param error!", setup.clkout_nr);
72 … ``clock_control_on()``. Structure ``litex_clk_setup`` is used to set ``clkout_nr`` of clock outpu…
91 Code is performed on 2 clock outputs with ``clkout_nr`` defined in ``LITEX_CLK_TEST_CLK1`` and ``LI…