summaryrefslogtreecommitdiff
path: root/zephyr/shim/chip/npcx/clock.c
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2021-07-01 18:06:36 +0000
committerCommit Bot <commit-bot@chromium.org>2021-08-06 10:12:19 +0000
commit7437b8552ecc736275bf0e2d8622ec407558902f (patch)
treeecdb2369ed0d0e29aacdf0b821f44d1ad5a6a5aa /zephyr/shim/chip/npcx/clock.c
parent53c02958d338f8a4eabd2e5239800d1e7fbac60f (diff)
downloadchrome-ec-7437b8552ecc736275bf0e2d8622ec407558902f.tar.gz
zephyr: shim: use NPCX_CLK_CTRL_NODE for clock control
Zephyr NPCX drivers has been switched to the link time device definition, and now NPCX_CLK_CTRL_NODE is available to point to the pcc node directly. Use that in the EC code as well for the clock API. BRANCH=none BUG=none TEST=build and run on volteer Cq-Depend: chromium:3000806, chromium:3070703 Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I8a5b5426c5e6a9167cd232fc72e50d372958b31c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3001584 Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/shim/chip/npcx/clock.c')
-rw-r--r--zephyr/shim/chip/npcx/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/shim/chip/npcx/clock.c b/zephyr/shim/chip/npcx/clock.c
index cd483682b8..8c8bad5596 100644
--- a/zephyr/shim/chip/npcx/clock.c
+++ b/zephyr/shim/chip/npcx/clock.c
@@ -22,7 +22,7 @@ LOG_MODULE_REGISTER(shim_clock, LOG_LEVEL_ERR);
int clock_get_freq(void)
{
- const struct device *clk_dev = DEVICE_DT_GET(DT_NODELABEL(pcc));
+ const struct device *clk_dev = DEVICE_DT_GET(NPCX_CLK_CTRL_NODE);
const struct npcx_clk_cfg clk_cfg = {
.bus = NPCX_CLOCK_BUS_CORE,
};