File tree 1 file changed +33
-0
lines changed
tests/drivers/clock_control/nrf_clock_control/src 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,32 @@ static const struct test_clk_context cpurad_hsfll_test_clk_contexts[] = {
104
104
};
105
105
#endif
106
106
107
+ const struct nrf_clock_spec test_clk_specs_global_hsfll [] = {
108
+ {
109
+ .frequency = MHZ (128 ),
110
+ .accuracy = 0 ,
111
+ .precision = NRF_CLOCK_CONTROL_PRECISION_DEFAULT ,
112
+ },
113
+ {
114
+ .frequency = MHZ (320 ),
115
+ .accuracy = 0 ,
116
+ .precision = NRF_CLOCK_CONTROL_PRECISION_DEFAULT ,
117
+ },
118
+ {
119
+ .frequency = MHZ (64 ),
120
+ .accuracy = 0 ,
121
+ .precision = NRF_CLOCK_CONTROL_PRECISION_DEFAULT ,
122
+ },
123
+ };
124
+
125
+ static const struct test_clk_context global_hsfll_test_clk_contexts [] = {
126
+ {
127
+ .clk_dev = DEVICE_DT_GET (DT_NODELABEL (hsfll120 )),
128
+ .clk_specs = test_clk_specs_global_hsfll ,
129
+ .clk_specs_size = ARRAY_SIZE (test_clk_specs_global_hsfll ),
130
+ },
131
+ };
132
+
107
133
const struct nrf_clock_spec test_clk_specs_lfclk [] = {
108
134
{
109
135
.frequency = 32768 ,
@@ -249,6 +275,13 @@ ZTEST(nrf2_clock_control, test_lfclk_control)
249
275
test_clock_control_request (lfclk_test_clk_contexts , ARRAY_SIZE (lfclk_test_clk_contexts ));
250
276
}
251
277
278
+ ZTEST (nrf2_clock_control , test_global_hsfll_control )
279
+ {
280
+ TC_PRINT ("Global HSFLL test\n" );
281
+ test_clock_control_request (global_hsfll_test_clk_contexts ,
282
+ ARRAY_SIZE (global_hsfll_test_clk_contexts ));
283
+ }
284
+
252
285
ZTEST (nrf2_clock_control , test_safe_request_cancellation )
253
286
{
254
287
int ret = 0 ;
You can’t perform that action at this time.
0 commit comments