Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/kernel/platform/ace30/include/platform/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@
/* Stack configuration */
#define SOF_STACK_SIZE 0x1000

#define PLATFORM_HEAP_SYSTEM CONFIG_CORE_COUNT /* one per core */
#define PLATFORM_HEAP_SYSTEM_RUNTIME CONFIG_CORE_COUNT /* one per core */
#define PLATFORM_HEAP_RUNTIME 1
#define PLATFORM_HEAP_RUNTIME_SHARED 1
#define PLATFORM_HEAP_SYSTEM_SHARED 1
#define PLATFORM_HEAP_BUFFER 2

/**
* size of HPSRAM system heap
*/
Expand Down
9 changes: 0 additions & 9 deletions src/kernel/platform/ace30/include/platform/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@

#include <rtos/clk.h>

/*! \def PLATFORM_DEFAULT_CLOCK
* \brief clock source for audio pipeline
*
* There are two types of clock: cpu clock which is a internal clock in
* xtensa core, and ssp clock which is provided by external HW IP.
* The choice depends on HW features on different platform
*/
#define PLATFORM_DEFAULT_CLOCK CLK_SSP

/* Host page size */
#define HOST_PAGE_SIZE 4096
#endif /* __PLATFORM_PLATFORM_H__ */
Expand Down
2 changes: 0 additions & 2 deletions src/kernel/platform/imx8/include/platform/lib/clk.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ struct sof;
#define CPU_DEFAULT_IDX 0

#ifdef CONFIG_IMX8
#define CLK_DEFAULT_CPU_HZ 666000000
#define CLK_MAX_CPU_HZ 666000000
#else /* CONFIG_IMX8X */
#define CLK_DEFAULT_CPU_HZ 640000000
#define CLK_MAX_CPU_HZ 640000000
#endif

Expand Down
22 changes: 0 additions & 22 deletions src/kernel/platform/imx8/include/platform/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@

/* physical DSP addresses */

#define DRAM0_BASE 0x596e8000
#define DRAM0_SIZE 0x8000

#define DRAM1_BASE 0x596f0000
#define DRAM1_SIZE 0x8000

#define SDRAM0_BASE 0x92400000
#define SDRAM0_SIZE 0x800000

#define SDRAM1_SIZE 0x800000

#define XSHAL_MU13_SIDEB_BYPASS_PADDR 0x5D310000
Expand Down Expand Up @@ -77,8 +68,6 @@
#define HEAP_SYSTEM_BASE SDRAM1_BASE + SOF_MAILBOX_SIZE
#define HEAP_SYSTEM_SIZE 0xe000

#define HEAP_SYSTEM_0_BASE HEAP_SYSTEM_BASE

#define HEAP_SYS_RUNTIME_BASE (HEAP_SYSTEM_BASE + HEAP_SYSTEM_SIZE)
#define HEAP_SYS_RUNTIME_SIZE \
(HEAP_SYS_RT_COUNT64 * 64 + HEAP_SYS_RT_COUNT512 * 512 + \
Expand All @@ -97,27 +86,16 @@
(SDRAM1_SIZE - SOF_MAILBOX_SIZE - HEAP_RUNTIME_SIZE - SOF_STACK_TOTAL_SIZE -\
HEAP_SYS_RUNTIME_SIZE - HEAP_SYSTEM_SIZE)

#define HEAP_BUFFER_BLOCK_SIZE 0x100

#define PLATFORM_HEAP_SYSTEM 1 /* one per core */
#define PLATFORM_HEAP_SYSTEM_RUNTIME 1 /* one per core */
#define PLATFORM_HEAP_RUNTIME 1
#define PLATFORM_HEAP_BUFFER 1

/* Stack configuration */
#define SOF_STACK_SIZE (CONFIG_SOF_STACK_SIZE)
#define SOF_STACK_TOTAL_SIZE SOF_STACK_SIZE
#define SOF_STACK_BASE (SDRAM1_BASE + SDRAM1_SIZE)
#define SOF_STACK_END (SOF_STACK_BASE - SOF_STACK_TOTAL_SIZE)

#if !defined(__ASSEMBLER__) && !defined(LINKER)

struct sof;

void platform_init_memmap(struct sof *sof);

#define cache_to_uncache_init(address) address

#endif

#define host_to_local(addr) (addr)
Expand Down
1 change: 0 additions & 1 deletion src/kernel/platform/imx8m/include/platform/lib/clk.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ struct sof;

#define CPU_DEFAULT_IDX 0

#define CLK_DEFAULT_CPU_HZ 800000000
#define CLK_MAX_CPU_HZ 800000000

#define NUM_CLOCKS 1
Expand Down
22 changes: 0 additions & 22 deletions src/kernel/platform/imx8m/include/platform/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@

/* physical DSP addresses */

#define DRAM0_BASE 0x3b6e8000
#define DRAM0_SIZE 0x8000

#define DRAM1_BASE 0x3b6f0000
#define DRAM1_SIZE 0x8000

#define SDRAM0_BASE 0x92400000
#define SDRAM0_SIZE 0x800000

#define SDRAM1_SIZE 0x800000

#define XSHAL_MU2_SIDEB_BYPASS_PADDR 0x30E70000
Expand Down Expand Up @@ -78,8 +69,6 @@
#define HEAP_SYSTEM_BASE SDRAM1_BASE + SOF_MAILBOX_SIZE
#define HEAP_SYSTEM_SIZE 0xe000

#define HEAP_SYSTEM_0_BASE HEAP_SYSTEM_BASE

#define HEAP_SYS_RUNTIME_BASE (HEAP_SYSTEM_BASE + HEAP_SYSTEM_SIZE)
#define HEAP_SYS_RUNTIME_SIZE \
(HEAP_SYS_RT_COUNT64 * 64 + HEAP_SYS_RT_COUNT512 * 512 + \
Expand All @@ -98,27 +87,16 @@
(SDRAM1_SIZE - SOF_MAILBOX_SIZE - HEAP_RUNTIME_SIZE - SOF_STACK_TOTAL_SIZE -\
HEAP_SYS_RUNTIME_SIZE - HEAP_SYSTEM_SIZE)

#define HEAP_BUFFER_BLOCK_SIZE 0x100

#define PLATFORM_HEAP_SYSTEM 1 /* one per core */
#define PLATFORM_HEAP_SYSTEM_RUNTIME 1 /* one per core */
#define PLATFORM_HEAP_RUNTIME 1
#define PLATFORM_HEAP_BUFFER 1

/* Stack configuration */
#define SOF_STACK_SIZE (CONFIG_SOF_STACK_SIZE)
#define SOF_STACK_TOTAL_SIZE SOF_STACK_SIZE
#define SOF_STACK_BASE (SDRAM1_BASE + SDRAM1_SIZE)
#define SOF_STACK_END (SOF_STACK_BASE - SOF_STACK_TOTAL_SIZE)

#if !defined(__ASSEMBLER__) && !defined(LINKER)

struct sof;

void platform_init_memmap(struct sof *sof);

#define cache_to_uncache_init(address) address

#endif

#define host_to_local(addr) (addr)
Expand Down
2 changes: 0 additions & 2 deletions src/kernel/platform/imx8m_cm7/include/platform/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

#include <rtos/cache.h>

#define cache_to_uncache_init(address) address

/* no address translation required */
#define host_to_local(addr) (addr)
#define local_to_host(addr) (addr)
Expand Down
1 change: 0 additions & 1 deletion src/kernel/platform/imx8ulp/include/platform/lib/clk.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ struct sof;

#define CPU_DEFAULT_IDX 0

#define CLK_DEFAULT_CPU_HZ 528000000
#define CLK_MAX_CPU_HZ 600000000

#define NUM_CLOCKS 1
Expand Down
15 changes: 0 additions & 15 deletions src/kernel/platform/imx8ulp/include/platform/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@

/* physical DSP addresses */

#define DRAM0_BASE 0x21180000
#define DRAM0_SIZE 0x10000

#define SDRAM0_BASE 0x1a000000
#define SDRAM0_SIZE 0x800000

Expand Down Expand Up @@ -78,8 +75,6 @@
#define HEAP_SYSTEM_BASE (SDRAM1_BASE + SOF_MAILBOX_SIZE)
#define HEAP_SYSTEM_SIZE 0xe000

#define HEAP_SYSTEM_0_BASE HEAP_SYSTEM_BASE

#define HEAP_SYS_RUNTIME_BASE (HEAP_SYSTEM_BASE + HEAP_SYSTEM_SIZE)
#define HEAP_SYS_RUNTIME_SIZE \
(HEAP_SYS_RT_COUNT64 * 64 + HEAP_SYS_RT_COUNT512 * 512 + \
Expand All @@ -98,27 +93,17 @@
(SDRAM1_SIZE - SOF_MAILBOX_SIZE - HEAP_RUNTIME_SIZE - SOF_STACK_TOTAL_SIZE -\
HEAP_SYS_RUNTIME_SIZE - HEAP_SYSTEM_SIZE)

#define HEAP_BUFFER_BLOCK_SIZE 0x100

#define PLATFORM_HEAP_SYSTEM 1 /* one per core */
#define PLATFORM_HEAP_SYSTEM_RUNTIME 1 /* one per core */
#define PLATFORM_HEAP_RUNTIME 1
#define PLATFORM_HEAP_BUFFER 1

/* Stack configuration */
#define SOF_STACK_SIZE (CONFIG_SOF_STACK_SIZE)
#define SOF_STACK_TOTAL_SIZE SOF_STACK_SIZE
#define SOF_STACK_BASE (SDRAM1_BASE + SDRAM1_SIZE)
#define SOF_STACK_END (SOF_STACK_BASE - SOF_STACK_TOTAL_SIZE)

#if !defined(__ASSEMBLER__) && !defined(LINKER)

struct sof;

void platform_init_memmap(struct sof *sof);

#define cache_to_uncache_init(address) address

/**
* \brief Function for keeping shared data synchronized.
* It's used after usage of data shared by different cores.
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/platform/imx93_a55/include/platform/lib/clk.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifdef __SOF_LIB_CLK_H__

#ifndef __PLATFORM_LIB_CLK_H__
#define __PLATFORM_LIB_CLK_H___
#define __PLATFORM_LIB_CLK_H__

#define CLK_CPU(x) (x)
#define CPU_DEFAULT_IDX 0
Expand Down
19 changes: 0 additions & 19 deletions src/kernel/platform/imx93_a55/include/platform/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,6 @@

#include <rtos/cache.h>

/* seems like in xtensa architecture cached data
* may be placed at some special addresses in the
* SRAM?
*
* since we're running on A55 cores, there's no such
* thing so all the below cache/shared data "management"
* functions aren't necessary.
*/
#define cache_to_uncache_init(address) address

/* number of heaps to be used.
*
* i.MX93 is non-SMP so we're only going to use 1 heap.
*/
#define PLATFORM_HEAP_SYSTEM 1
#define PLATFORM_HEAP_SYSTEM_RUNTIME 1
#define PLATFORM_HEAP_RUNTIME 1
#define PLATFORM_HEAP_BUFFER 1

/* host and firmware use shared memory */
#define host_to_local(addr) (addr)
#define local_to_host(addr) (addr)
Expand Down
2 changes: 0 additions & 2 deletions src/kernel/platform/imx95/include/platform/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

#include <rtos/cache.h>

#define cache_to_uncache_init(address) address

/* no address translation required */
#define host_to_local(addr) (addr)
#define local_to_host(addr) (addr)
Expand Down
7 changes: 0 additions & 7 deletions src/kernel/platform/intel/cavs/include/cavs/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@

struct sof;

#if !defined UNIT_TEST && !defined __ZEPHYR__
#define cache_to_uncache_init(address) \
((__typeof__((address)))((uint32_t)((address)) - SRAM_ALIAS_OFFSET))
#else
#define cache_to_uncache_init(address) address
#endif

void platform_init_memmap(struct sof *sof);

#endif
Expand Down
11 changes: 0 additions & 11 deletions src/kernel/platform/library/include/platform/lib/clk.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,12 @@
#define CLK_CPU(x) x
#define CLK_SSP 1

#define CLK_DEFAULT_CPU_HZ 50000000
#define CLK_MAX_CPU_HZ 343000000

#define NUM_CLOCKS 2

#define CPU_WOVCRO_FREQ_IDX 0

#define CPU_LPRO_FREQ_IDX 1

#define CPU_HPRO_FREQ_IDX 2

#define CPU_LOWEST_FREQ_IDX CPU_WOVCRO_FREQ_IDX

#define CPU_DEFAULT_IDX CPU_HPRO_FREQ_IDX

#define NUM_CPU_FREQ 3

#define NUM_SSP_FREQ 3

#endif /* __PLATFORM_LIB_CLK_H__ */
Expand Down
6 changes: 0 additions & 6 deletions src/kernel/platform/library/include/platform/lib/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
#ifndef __PLATFORM_LIB_DMA_H__
#define __PLATFORM_LIB_DMA_H__

#define DMA_ID_DMAC0 0
#define DMA_ID_DMAC1 1

#define DMA_DEV_PCM 0
#define DMA_DEV_WAV 1

#define PLATFORM_NUM_DMACS 1
#define PLATFORM_MAX_DMA_CHAN 1

Expand Down
7 changes: 0 additions & 7 deletions src/kernel/platform/lunarlake/include/platform/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@
/* Stack configuration */
#define SOF_STACK_SIZE 0x1000

#define PLATFORM_HEAP_SYSTEM CONFIG_CORE_COUNT /* one per core */
#define PLATFORM_HEAP_SYSTEM_RUNTIME CONFIG_CORE_COUNT /* one per core */
#define PLATFORM_HEAP_RUNTIME 1
#define PLATFORM_HEAP_RUNTIME_SHARED 1
#define PLATFORM_HEAP_SYSTEM_SHARED 1
#define PLATFORM_HEAP_BUFFER 2

/**
* size of HPSRAM system heap
*/
Expand Down
9 changes: 0 additions & 9 deletions src/kernel/platform/lunarlake/include/platform/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@

#include <rtos/clk.h>

/*! \def PLATFORM_DEFAULT_CLOCK
* \brief clock source for audio pipeline
*
* There are two types of clock: cpu clock which is a internal clock in
* xtensa core, and ssp clock which is provided by external HW IP.
* The choice depends on HW features on different platform
*/
#define PLATFORM_DEFAULT_CLOCK CLK_SSP

/* Host page size */
#define HOST_PAGE_SIZE 4096
#endif /* __PLATFORM_PLATFORM_H__ */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@
/* Stack configuration */
#define SOF_STACK_SIZE 0x1000

#define PLATFORM_HEAP_SYSTEM CONFIG_CORE_COUNT /* one per core */
#define PLATFORM_HEAP_SYSTEM_RUNTIME CONFIG_CORE_COUNT /* one per core */
#define PLATFORM_HEAP_RUNTIME 1
#define PLATFORM_HEAP_RUNTIME_SHARED 1
#define PLATFORM_HEAP_SYSTEM_SHARED 1
#define PLATFORM_HEAP_BUFFER 2

/**
* size of HPSRAM system heap
*/
Expand Down
9 changes: 0 additions & 9 deletions src/kernel/platform/meteorlake/include/platform/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@

#include <rtos/clk.h>

/*! \def PLATFORM_DEFAULT_CLOCK
* \brief clock source for audio pipeline
*
* There are two types of clock: cpu clock which is a internal clock in
* xtensa core, and ssp clock which is provided by external HW IP.
* The choice depends on HW features on different platform
*/
#define PLATFORM_DEFAULT_CLOCK CLK_SSP

/* Host page size */
#define HOST_PAGE_SIZE 4096
#endif /* __PLATFORM_PLATFORM_H__ */
Expand Down
7 changes: 0 additions & 7 deletions src/kernel/platform/novalake/include/platform/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@
/* Stack configuration */
#define SOF_STACK_SIZE (CONFIG_SOF_STACK_SIZE)

#define PLATFORM_HEAP_SYSTEM CONFIG_CORE_COUNT /* one per core */
#define PLATFORM_HEAP_SYSTEM_RUNTIME CONFIG_CORE_COUNT /* one per core */
#define PLATFORM_HEAP_RUNTIME 1
#define PLATFORM_HEAP_RUNTIME_SHARED 1
#define PLATFORM_HEAP_SYSTEM_SHARED 1
#define PLATFORM_HEAP_BUFFER 2

/**
* size of HPSRAM system heap
*/
Expand Down
Loading
Loading