blob: fc1dc020debf3412e7f3c3260380aa753ffaa174 [file] [log] [blame]
Ghennadi Procopciucf648e5d2024-06-12 09:07:16 +03001/*
2 * Copyright 2024 NXP
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6#include <drivers/clk.h>
7#include <s32cc-clk-drv.h>
8#include <s32cc-clk-ids.h>
9#include <s32cc-clk-utils.h>
10
11#define S32CC_FXOSC_FREQ (40U * MHZ)
12
13int s32cc_init_early_clks(void)
14{
15 int ret;
16
17 s32cc_clk_register_drv();
18
19 ret = clk_set_rate(S32CC_CLK_FXOSC, S32CC_FXOSC_FREQ, NULL);
20 if (ret != 0) {
21 return ret;
22 }
23
24 return ret;
25}