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"
428
428
source "drivers/clk/xilinx/Kconfig"
429
429
source "drivers/clk/zynqmp/Kconfig"
430
430
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
+
431
439
endif
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ obj-$(CONFIG_COMMON_CLK) += clk-divider.o
6
6
obj-$(CONFIG_COMMON_CLK) += clk-fixed-factor.o
7
7
obj-$(CONFIG_COMMON_CLK) += clk-fixed-rate.o
8
8
obj-$(CONFIG_COMMON_CLK) += clk-gate.o
9
+ obj-$(CONFIG_CLK_GATE_KUNIT_TEST) += clk-gate_test.o
9
10
obj-$(CONFIG_COMMON_CLK) += clk-multiplier.o
10
11
obj-$(CONFIG_COMMON_CLK) += clk-mux.o
11
12
obj-$(CONFIG_COMMON_CLK) += clk-composite.o
You can’t perform that action at this time.
0 commit comments