File tree Expand file tree Collapse file tree 12 files changed +44
-44
lines changed
include/zephyr/drivers/clock_control
tests/drivers/clock_control/cavs_clock/src Expand file tree Collapse file tree 12 files changed +44
-44
lines changed Original file line number Diff line number Diff line change 33zephyr_library()
44
55zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_BEETLE beetle_clock_control.c)
6- zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_ADSP clock_control_cavs .c)
6+ zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_ADSP clock_control_adsp .c)
77zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_ESP32 clock_control_esp32.c)
88zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_GD32 clock_control_gd32.c)
99zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_LITEX clock_control_litex.c)
Original file line number Diff line number Diff line change 44 * SPDX-License-Identifier: Apache-2.0
55 */
66#include <zephyr/device.h>
7- #include <zephyr/drivers/clock_control/clock_control_cavs .h>
7+ #include <zephyr/drivers/clock_control/clock_control_adsp .h>
88#include <zephyr/drivers/clock_control.h>
99
1010static int cavs_clock_ctrl_set_rate (const struct device * clk ,
Original file line number Diff line number Diff line change 11# Copyright (c) 2022 Intel Corporation. All rights reserved.
22# SPDX-License-Identifier: Apache-2.0
33
4- description : Intel cAVS clock controlling related constants.
4+ description : Intel ADSP clock controlling related constants.
55
66compatible : " intel,adsp-shim-clkctl"
77
88properties :
9- cavs -clkctl-clk-wovcro :
9+ adsp -clkctl-clk-wovcro :
1010 type : int
1111 required : false
1212 description : Index of WOVCRO clock encoding in the encoding array (if wovcro-supported is true).
1313
14- cavs -clkctl-clk-lpro :
14+ adsp -clkctl-clk-lpro :
1515 type : int
1616 required : false
1717 description : Index of LPRO clock encoding in the encoding array.
1818
19- cavs -clkctl-clk-hpro :
19+ adsp -clkctl-clk-hpro :
2020 type : int
2121 required : false
2222 description : Index of HPRO clock encoding in the encoding array.
2323
24- cavs -clkctl-freq-enc :
24+ adsp -clkctl-freq-enc :
2525 type : array
2626 required : true
2727 description : Array that encodes what is needed to enable each clock.
2828
29- cavs -clkctl-freq-mask :
29+ adsp -clkctl-freq-mask :
3030 type : array
3131 required : false
3232 description : Array that encodes needed masks to enable each clock.
3333
34- cavs -clkctl-freq-default :
34+ adsp -clkctl-freq-default :
3535 type : int
3636 required : true
3737 description : Index for the default clock.
3838
39- cavs -clkctl-freq-lowest :
39+ adsp -clkctl-freq-lowest :
4040 type : int
4141 required : true
4242 description : Index for the lowest frequency clock.
Original file line number Diff line number Diff line change 5555
5656 clkctl: clkctl {
5757 compatible = "intel,adsp-shim-clkctl";
58- cavs -clkctl-clk-lpro = <0>;
59- cavs -clkctl-clk-hpro = <2>;
60- cavs -clkctl-freq-enc = <0x3 0x1 0x0>;
61- cavs -clkctl-freq-default = <1>;
62- cavs -clkctl-freq-lowest = <0>;
58+ adsp -clkctl-clk-lpro = <0>;
59+ adsp -clkctl-clk-hpro = <2>;
60+ adsp -clkctl-freq-enc = <0x3 0x1 0x0>;
61+ adsp -clkctl-freq-default = <1>;
62+ adsp -clkctl-freq-lowest = <0>;
6363 };
6464
6565 soc {
Original file line number Diff line number Diff line change 5151
5252 clkctl: clkctl {
5353 compatible = "intel,adsp-shim-clkctl";
54- cavs -clkctl-clk-lpro = <0>;
55- cavs -clkctl-clk-hpro = <1>;
56- cavs -clkctl-freq-enc = <0x20000002 0x80000006>;
57- cavs -clkctl-freq-mask = <0x20000000 0x80000000>;
58- cavs -clkctl-freq-default = <1>;
59- cavs -clkctl-freq-lowest = <0>;
54+ adsp -clkctl-clk-lpro = <0>;
55+ adsp -clkctl-clk-hpro = <1>;
56+ adsp -clkctl-freq-enc = <0x20000002 0x80000006>;
57+ adsp -clkctl-freq-mask = <0x20000000 0x80000000>;
58+ adsp -clkctl-freq-default = <1>;
59+ adsp -clkctl-freq-lowest = <0>;
6060 };
6161
6262 soc {
Original file line number Diff line number Diff line change 5151
5252 clkctl: clkctl {
5353 compatible = "intel,adsp-shim-clkctl";
54- cavs -clkctl-clk-lpro = <0>;
55- cavs -clkctl-clk-hpro = <1>;
56- cavs -clkctl-freq-enc = <0x20000002 0x80000006>;
57- cavs -clkctl-freq-mask = <0x20000000 0x80000000>;
58- cavs -clkctl-freq-default = <1>;
59- cavs -clkctl-freq-lowest = <0>;
54+ adsp -clkctl-clk-lpro = <0>;
55+ adsp -clkctl-clk-hpro = <1>;
56+ adsp -clkctl-freq-enc = <0x20000002 0x80000006>;
57+ adsp -clkctl-freq-mask = <0x20000000 0x80000000>;
58+ adsp -clkctl-freq-default = <1>;
59+ adsp -clkctl-freq-lowest = <0>;
6060 };
6161
6262 soc {
Original file line number Diff line number Diff line change 6969
7070 clkctl: clkctl {
7171 compatible = "intel,adsp-shim-clkctl";
72- cavs -clkctl-clk-wovcro = <0>;
73- cavs -clkctl-clk-lpro = <1>;
74- cavs -clkctl-clk-hpro = <2>;
75- cavs -clkctl-freq-enc = <0x1a 0x20000002 0x80000002>;
76- cavs -clkctl-freq-mask = <0x10 0x20000000 0x80000000>;
77- cavs -clkctl-freq-default = <2>;
78- cavs -clkctl-freq-lowest = <0>;
72+ adsp -clkctl-clk-wovcro = <0>;
73+ adsp -clkctl-clk-lpro = <1>;
74+ adsp -clkctl-clk-hpro = <2>;
75+ adsp -clkctl-freq-enc = <0x1a 0x20000002 0x80000002>;
76+ adsp -clkctl-freq-mask = <0x10 0x20000000 0x80000000>;
77+ adsp -clkctl-freq-default = <2>;
78+ adsp -clkctl-freq-lowest = <0>;
7979 wovcro-supported;
8080 };
8181
Original file line number Diff line number Diff line change 66#ifndef CLOCK_CONTROL_ADSP_H_
77#define CLOCK_CONTROL_ADSP_H_
88
9- #include <cavs -clk.h>
9+ #include <adsp -clk.h>
1010
1111#endif /* CLOCK_CONTROL_ADSP_H_ */
Original file line number Diff line number Diff line change 1111#include <zephyr/init.h>
1212
1313#include <adsp_shim.h>
14- #include <cavs -clk.h>
14+ #include <adsp -clk.h>
1515#include <cavs-idc.h>
1616#include "soc.h"
1717
Original file line number Diff line number Diff line change 55 */
66#include <zephyr/device.h>
77
8- #include <cavs -clk.h>
8+ #include <adsp -clk.h>
99#include <adsp_shim.h>
1010
1111static struct cavs_clock_info platform_clocks [CONFIG_MP_NUM_CPUS ];
You can’t perform that action at this time.
0 commit comments