soc: xtensa: imx8m: Remove unused definitions
Remove unused macro definitions. While here, use Zephyr's convention for include guard. Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
This commit is contained in:
parent
85a1124d5d
commit
afc3606116
1 changed files with 6 additions and 55 deletions
|
@ -1,11 +1,11 @@
|
|||
/*
|
||||
* Copyright (c) 2021 NXP
|
||||
* Copyright 2021, 2023 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef __INC_MEMORY_H
|
||||
#define __INC_MEMORY_H
|
||||
#ifndef ZEPHYR_SOC_NXP_ADSP_MEMORY_H_
|
||||
#define ZEPHYR_SOC_NXP_ADSP_MEMORY_H_
|
||||
|
||||
#define PLATFORM_CORE_COUNT 1
|
||||
|
||||
|
@ -166,53 +166,4 @@
|
|||
+ SRAM_DEBUG_SIZE + SRAM_EXCEPT_SIZE \
|
||||
+ SRAM_STREAM_SIZE + SRAM_TRACE_SIZE)
|
||||
|
||||
/* Heap section sizes for module pool */
|
||||
#define HEAP_RT_COUNT8 0
|
||||
#define HEAP_RT_COUNT16 48
|
||||
#define HEAP_RT_COUNT32 48
|
||||
#define HEAP_RT_COUNT64 32
|
||||
#define HEAP_RT_COUNT128 32
|
||||
#define HEAP_RT_COUNT256 32
|
||||
#define HEAP_RT_COUNT512 4
|
||||
#define HEAP_RT_COUNT1024 4
|
||||
#define HEAP_RT_COUNT2048 4
|
||||
#define HEAP_RT_COUNT4096 4
|
||||
|
||||
/* Heap section sizes for system runtime heap */
|
||||
#define HEAP_SYS_RT_COUNT64 128
|
||||
#define HEAP_SYS_RT_COUNT512 16
|
||||
#define HEAP_SYS_RT_COUNT1024 8
|
||||
|
||||
/* Heap configuration */
|
||||
#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 + \
|
||||
HEAP_SYS_RT_COUNT1024 * 1024)
|
||||
|
||||
#define HEAP_RUNTIME_BASE (HEAP_SYS_RUNTIME_BASE + HEAP_SYS_RUNTIME_SIZE)
|
||||
#define HEAP_RUNTIME_SIZE \
|
||||
(HEAP_RT_COUNT8 * 8 + HEAP_RT_COUNT16 * 16 + \
|
||||
HEAP_RT_COUNT32 * 32 + HEAP_RT_COUNT64 * 64 + \
|
||||
HEAP_RT_COUNT128 * 128 + HEAP_RT_COUNT256 * 256 + \
|
||||
HEAP_RT_COUNT512 * 512 + HEAP_RT_COUNT1024 * 1024 + \
|
||||
HEAP_RT_COUNT2048 * 2048 + HEAP_RT_COUNT4096 * 4096)
|
||||
|
||||
#define HEAP_BUFFER_BASE (HEAP_RUNTIME_BASE + HEAP_RUNTIME_SIZE)
|
||||
#define HEAP_BUFFER_SIZE \
|
||||
(SDRAM1_SIZE - SOF_MAILBOX_SIZE - HEAP_RUNTIME_SIZE - SOF_STACK_TOTAL_SIZE -\
|
||||
HEAP_SYS_RUNTIME_SIZE - HEAP_SYSTEM_SIZE)
|
||||
|
||||
/* Stack configuration */
|
||||
#define SOF_STACK_SIZE 0x1000
|
||||
#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)
|
||||
|
||||
/* Host page size */
|
||||
#define HOST_PAGE_SIZE 4096
|
||||
|
||||
#endif /* __INC_MEMORY_H */
|
||||
#endif /* ZEPHYR_SOC_NXP_ADSP_MEMORY_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue