File tree Expand file tree Collapse file tree 4 files changed +476
-0
lines changed Expand file tree Collapse file tree 4 files changed +476
-0
lines changed Original file line number Diff line number Diff line change 1+ CONFIG_KUNIT=y
2+ CONFIG_COMMON_CLK=y
3+ CONFIG_CLK_GATE_KUNIT_TEST=y
Original file line number Diff line number Diff line change @@ -428,4 +428,12 @@ source "drivers/clk/x86/Kconfig"
428428source "drivers/clk/xilinx/Kconfig"
429429source "drivers/clk/zynqmp/Kconfig"
430430
431+ # Kunit test cases
432+ config CLK_GATE_KUNIT_TEST
433+ tristate "Basic gate type Kunit test" if !KUNIT_ALL_TESTS
434+ depends on KUNIT
435+ default KUNIT_ALL_TESTS
436+ help
437+ Kunit test for the basic clk gate type.
438+
431439endif
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ obj-$(CONFIG_COMMON_CLK) += clk-divider.o
66obj-$(CONFIG_COMMON_CLK) += clk-fixed-factor.o
77obj-$(CONFIG_COMMON_CLK) += clk-fixed-rate.o
88obj-$(CONFIG_COMMON_CLK) += clk-gate.o
9+ obj-$(CONFIG_CLK_GATE_KUNIT_TEST) += clk-gate_test.o
910obj-$(CONFIG_COMMON_CLK) += clk-multiplier.o
1011obj-$(CONFIG_COMMON_CLK) += clk-mux.o
1112obj-$(CONFIG_COMMON_CLK) += clk-composite.o
You can’t perform that action at this time.
0 commit comments