Lines Matching +full:2 +full:- +full:phase
4 * SPDX-License-Identifier: Apache-2.0
13 /* Select clock outputs for tests [0-6] */
33 /* Values for phase test */
56 #define LITEX_TEST_DUTY 2
75 printf("CLKOUT%d: get_status: rate:%d phase:%d duty:%d\n", in litex_clk_test_getters()
76 i, setup.rate, setup.phase, setup.duty); in litex_clk_test_getters()
90 .phase = LITEX_TEST_SINGLE_PHASE_VAL in litex_clk_test_single()
96 .phase = LITEX_TEST_SINGLE_PHASE_VAL2, in litex_clk_test_single()
122 .phase = LITEX_TEST_FREQUENCY_PHASE_VAL in litex_clk_test_freq()
148 if (ret != 0 && ret != -ENOTSUP) { in litex_clk_test_freq()
159 i -= LITEX_TEST_FREQUENCY_STEP) { in litex_clk_test_freq()
164 if (ret != 0 && ret != -ENOTSUP) { in litex_clk_test_freq()
185 .phase = 0 in litex_clk_test_phase()
197 printf("Phase test\n"); in litex_clk_test_phase()
200 if (ret != 0 && ret != -ENOTSUP) { in litex_clk_test_phase()
207 setup2.phase = i; in litex_clk_test_phase()
225 .phase = LITEX_TEST_DUTY_PHASE_VAL, in litex_clk_test_duty()
231 .phase = LITEX_TEST_DUTY_PHASE_VAL, in litex_clk_test_duty()
239 if (ret != 0 && ret != -ENOTSUP) { in litex_clk_test_duty()
243 if (ret != 0 && ret != -ENOTSUP) { in litex_clk_test_duty()
258 setup2.duty = 100 - i; in litex_clk_test_duty()
267 i -= LITEX_TEST_DUTY_STEP) { in litex_clk_test_duty()
274 setup2.duty = 100 - i; in litex_clk_test_duty()
318 printf("device name: %s\n", dev->name); in main()
320 printf("error: device %s is not ready\n", dev->name); in main()
325 dev, dev->name); in main()