| /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ |
| /* |
| * arch/arm/cpu/armv8/txlx/firmware/scp_task/config.h |
| * |
| * Copyright (C) 2020 Amlogic, Inc. All rights reserved. |
| * |
| */ |
| |
| #ifndef _CONFIG_H_ |
| #define _CONFIG_H_ |
| |
| #define CONFIG_RAM_BASE (0x10000000 + 40 * 1024) |
| #define CONFIG_RAM_SIZE (13 * 1024) |
| #define CONFIG_RAM_END (CONFIG_RAM_BASE+CONFIG_RAM_SIZE) |
| |
| #define CONFIG_TASK_STACK_SIZE 512 |
| #define TASK_SHARE_MEM_SIZE 1024 |
| |
| /* secure share memory last unsigned are used |
| * for wakeup communication between BL30/BL301 |
| * 0x1000D5FC: store irq number |
| * 0x1000D7FC: control wakeup enable |
| * after BL301 enable wakeup, bl30 store irq no. in share memory |
| */ |
| #define WAKEUP_SRC_IRQ_ADDR_BASE (CONFIG_RAM_END - 128) |
| #define SECURE_TASK_SHARE_MEM_BASE 0x1000D400 |
| #define SECURE_TASK_RESPONSE_MEM_BASE 0x1000D600 |
| #define SECURE_TASK_RESPONSE_WAKEUP_EN 0x1000D7FC |
| #define HIGH_TASK_SHARE_MEM_BASE 0x1000D800 |
| #define HIGH_TASK_RESPONSE_MEM_BASE 0x1000DA00 |
| #define LOW_TASK_SHARE_MEM_BASE 0x1000DC00 |
| #define LOW_TASK_RESPONSE_MEM_BASE 0x1000DE00 |
| /* |
| * BL30/BL301 share memory command list |
| */ |
| #define COMMAND_SUSPEND_ENTER 0x1 |
| #define HIGH_TASK_SET_CLOCK 0x2 |
| #define LOW_TASK_GET_DVFS_INFO 0x3 |
| #define HIGH_TASK_GET_DVFS 0x4 |
| #define HIGH_TASK_SET_DVFS 0x5 |
| #define SEC_TASK_GET_WAKEUP_SRC 0x6 |
| |
| #define LOW_TASK_USR_DATA 0x100 |
| |
| /*bl301 resume to BL30*/ |
| #define RESPONSE_OK 0x0 |
| #define RESPONSE_SUSPEND_LEAVE 0x1 |
| |
| #endif//_CONFIG_H_ |