zephyr: further reduce the size of heap on APL with XCC

Building SOF with Zephyr for Apollolake with XCC fails because of
insufficient RAM. Reduce the heap size to fix the problem.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2021-10-07 09:59:53 +02:00 committed by Liam Girdwood
parent cbf5aa6fbc
commit 4337831643
1 changed files with 4 additions and 0 deletions

View File

@ -80,7 +80,11 @@ __section(".heap_mem") static uint8_t __aligned(64) heapmem[HEAPMEM_SIZE];
*/
#if (CONFIG_HP_MEMORY_BANKS < 16)
/* e.g. APL */
#if defined __XCC__
#define HEAP_SIZE 0x28000
#else
#define HEAP_SIZE 0x30000
#endif
#elif (CONFIG_HP_MEMORY_BANKS < 30)
/* e.g. JSL */
#define HEAP_SIZE 0x80000