| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
#ifndef MSS_MEM_H |
| 9 |
#define MSS_MEM_H |
| 10 |
|
| 11 |
|
| 12 |
#define MSS_SRAM_PM_CONTROL_BASE (MVEBU_REGS_BASE + 0x520000) |
| 13 |
|
| 14 |
enum mss_pm_ctrl_handshake { |
| 15 |
MSS_UN_INITIALIZED = 0, |
| 16 |
MSS_COMPATIBILITY_ERROR = 1, |
| 17 |
MSS_ACKNOWLEDGMENT = 2, |
| 18 |
HOST_ACKNOWLEDGMENT = 3 |
| 19 |
}; |
| 20 |
|
| 21 |
enum mss_pm_ctrl_rtos_env { |
| 22 |
MSS_MULTI_PROCESS_ENV = 0, |
| 23 |
MSS_SINGLE_PROCESS_ENV = 1, |
| 24 |
MSS_MAX_PROCESS_ENV |
| 25 |
}; |
| 26 |
|
| 27 |
struct mss_pm_ctrl_block { |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
unsigned int handshake; |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
unsigned int ipc_version; |
| 44 |
unsigned int ipc_base_address; |
| 45 |
unsigned int ipc_state; |
| 46 |
|
| 47 |
|
| 48 |
unsigned int num_of_cores; |
| 49 |
unsigned int num_of_clusters; |
| 50 |
unsigned int num_of_cores_per_cluster; |
| 51 |
|
| 52 |
|
| 53 |
unsigned int pm_trace_ctrl_base_address; |
| 54 |
unsigned int pm_trace_info_base_address; |
| 55 |
unsigned int pm_trace_info_core_size; |
| 56 |
|
| 57 |
unsigned int ctrl_blk_size; |
| 58 |
}; |
| 59 |
|
| 60 |
#endif |