Skip to content

Commit

Permalink
[nrf fromlist] samples: boards: nordic: clock_control: support global…
Browse files Browse the repository at this point in the history
… hsfll

Extend sample to support global hsfll clock control.

Upstream PR #: 81735

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
  • Loading branch information
bjarki-andreasen committed Nov 27, 2024
1 parent fd441b4 commit 7ed03c0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions samples/boards/nordic/clock_control/configs/global_hsfll.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

CONFIG_CLOCK_CONTROL=y

CONFIG_SAMPLE_CLOCK_FREQUENCY_HZ=320000000
11 changes: 11 additions & 0 deletions samples/boards/nordic/clock_control/configs/global_hsfll.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

/{
aliases {
sample-clock = &hsfll120;
};
};
5 changes: 5 additions & 0 deletions samples/boards/nordic/clock_control/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ tests:
extra_args:
- CONF_FILE="configs/cpuapp_hsfll.conf"
- DTC_OVERLAY_FILE="configs/cpuapp_hsfll.overlay"
sample.boards.nrf.clock_control.global_hsfll:
filter: dt_nodelabel_enabled("hsfll120")
extra_args:
- CONF_FILE="configs/global_hsfll.conf"
- DTC_OVERLAY_FILE="configs/global_hsfll.overlay"

0 comments on commit 7ed03c0

Please sign in to comment.