blob: e280e153652518fe59358c88d5ad86a485a6cf20 [file] [log] [blame]
/*
* BL301 whole memory : 16KB
* Secure Priority Task Entry 128B
* High Priority Task Entry 128B
* Low Priority Task Entry 128B
* Code, data, bss
* Secure Task share memory: 1k
* High Priority Task share memory: 1K
* Low Priority Task share memory: 1k
*/
#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
#define SCP_SHARE_TO_WARMBOOT (0x1000DE00 - 32)
/*
* 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
#define LOW_TASK_GET_USR_DATA 0x101
#define LOW_TASK_USR_LED_TIMER 0x110
/*bl301 resume to BL30*/
#define RESPONSE_OK 0x0
#define RESPONSE_SUSPEND_LEAVE 0x1
#endif//_CONFIG_H_