1 /*
2  * Copyright (c) 2018-2020 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <zephyr/types.h>
8 #include <soc.h>
9 #include <zephyr/device.h>
10 #include <zephyr/drivers/clock_control.h>
11 
12 #include "hal/debug.h"
13 
14 static uint16_t const sca_ppm_lut[] = {500, 250, 150, 100, 75, 50, 30, 20};
15 
lll_clock_wait(void)16 int lll_clock_wait(void)
17 {
18 	return 0;
19 }
20 
lll_clock_sca_local_get(void)21 uint8_t lll_clock_sca_local_get(void)
22 {
23 	return 0;
24 }
25 
lll_clock_ppm_local_get(void)26 uint32_t lll_clock_ppm_local_get(void)
27 {
28 	return sca_ppm_lut[0];
29 }
30 
lll_clock_ppm_get(uint8_t sca)31 uint32_t lll_clock_ppm_get(uint8_t sca)
32 {
33 	return sca_ppm_lut[sca];
34 }
35