huangcm
2025-09-01 53d8e046ac1bf2ebe94f671983e3d3be059df91a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
*********************************************************************************************************
*                                                AR100 SYSTEM
*                                     AR100 Software System Develop Kits
*
*
*                                    (c) Copyright 2018-2024, Luojie China
*                                             All Rights Reserved
*
* File    : cpucfg.h
* By      : LuoJie
* Version : v1.0
* Date    : 2018-06-05 16:32
* Descript: .
* Update  :auther      ver     notes
*          Luojie      1.0     Create this file.
*********************************************************************************************************
*/
#ifndef __CPUCFG_H__
#define __CPUCFG_H__
 
 
 
 
s32 cpucfg_set_little_endian_address(void *start, void *end);
s32 cpucfg_remove_little_endian_address(void *start, void *end);
 
u64 timestamp_read(void);
 
void set_secondary_entry(u32 entry, u32 cpu);
s32 cpucfg_set_cpux_jump_addr(u32 addr);
void sun50i_set_AA32nAA64(u32 cluster, u32 cpu, bool is_aa64);
void cpu_power_up(u32 cluster, u32 cpu);
void cpu_power_down(u32 cluster, u32 cpu);
 
void cpucfg_cpu_suspend(void);
void cpucfg_cpu_suspend_late(void);
 
s32 cpucfg_cpu_resume_early(void);
s32 cpucfg_cpu_resume(u32 entrypoint);
 
s32 cpuidle_suspend(void);
s32 cpuidle_resume(void);
#endif