Skip to content

Commit 375fc86

Browse files
committed
platform: tigerlake: remove use of SOF clock interface
Take benefit of the ability to build SOF Zephyr without SOF clock interface and drop all the clock related definitions from TGL platform code. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 10b1a52 commit 375fc86

File tree

7 files changed

+4
-201
lines changed

7 files changed

+4
-201
lines changed

src/platform/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ config CAVS
340340
default n
341341
select INTEL
342342
select INTEL_MN
343+
select SOF_ZEPHYR_NO_SOF_CLOCK
343344

344345
config CAVS_VERSION_2_5
345346
depends on CAVS

src/platform/intel/cavs/include/cavs/lib/clk.h

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/platform/intel/cavs/platform.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,11 @@ int platform_init(struct sof *sof)
116116
{
117117
int ret;
118118

119-
trace_point(TRACE_BOOT_PLATFORM_CLOCK);
120-
platform_clock_init(sof);
121-
122119
trace_point(TRACE_BOOT_PLATFORM_SCHED);
123120
scheduler_init_edf();
124121

125122
/* init low latency timer domain and scheduler */
126-
sof->platform_timer_domain = timer_domain_init(sof->platform_timer, PLATFORM_DEFAULT_CLOCK);
123+
sof->platform_timer_domain = timer_domain_init(sof->platform_timer, 0);
127124
scheduler_init_ll(sof->platform_timer_domain);
128125

129126
/* init the system agent */

src/platform/tigerlake/include/platform/lib/clk.h

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/platform/tigerlake/include/platform/platform.h

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,11 @@
1919
#include <stddef.h>
2020
#include <stdint.h>
2121

22+
#include <cavs/version.h>
23+
2224
struct ll_schedule_domain;
2325
struct timer;
2426

25-
/*! \def PLATFORM_DEFAULT_CLOCK
26-
* \brief clock source for audio pipeline
27-
*
28-
* There are two types of clock: cpu clock which is a internal clock in
29-
* xtensa core, and ssp clock which is provided by external HW IP.
30-
* The choice depends on HW features on different platform
31-
*/
32-
#define PLATFORM_DEFAULT_CLOCK CLK_SSP
33-
3427
/* Host page size */
3528
#define HOST_PAGE_SIZE 4096
3629

src/platform/tigerlake/lib/clk.c

Lines changed: 0 additions & 91 deletions
This file was deleted.

zephyr/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,6 @@ if (CONFIG_SOC_SERIES_INTEL_CAVS_V25)
222222
# Platform sources
223223
zephyr_library_sources(
224224
${SOF_PLATFORM_PATH}/intel/cavs/platform.c
225-
${SOF_PLATFORM_PATH}/tigerlake/lib/clk.c
226-
lib/clk.c
227225
lib/dma.c
228226
)
229227

0 commit comments

Comments
 (0)