| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
#ifndef MTSPMC_H |
| 8 |
#define MTSPMC_H |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
#define SPMC_MODE 1 |
| 20 |
|
| 21 |
int spmc_init(void); |
| 22 |
|
| 23 |
void spm_poweron_cpu(int cluster, int cpu); |
| 24 |
void spm_poweroff_cpu(int cluster, int cpu); |
| 25 |
|
| 26 |
void spm_poweroff_cluster(int cluster); |
| 27 |
void spm_poweron_cluster(int cluster); |
| 28 |
|
| 29 |
int spm_get_cpu_powerstate(int cluster, int cpu); |
| 30 |
int spm_get_cluster_powerstate(int cluster); |
| 31 |
int spm_get_powerstate(uint32_t mask); |
| 32 |
|
| 33 |
void spm_enable_cpu_auto_off(int cluster, int cpu); |
| 34 |
void spm_disable_cpu_auto_off(int cluster, int cpu); |
| 35 |
void spm_set_cpu_power_off(int cluster, int cpu); |
| 36 |
void spm_enable_cluster_auto_off(int cluster); |
| 37 |
|
| 38 |
void mcucfg_init_archstate(int cluster, int cpu, int arm64); |
| 39 |
void mcucfg_set_bootaddr(int cluster, int cpu, uintptr_t bootaddr); |
| 40 |
uintptr_t mcucfg_get_bootaddr(int cluster, int cpu); |
| 41 |
|
| 42 |
#endif |