xref: /arm-trusted-firmware/plat/hobot/sigi/include/sigi_def.h (revision 91f16700b400a8c0651d24a598fc48ee2997a0d7)
1 /*
2  * Copyright (c) 2022-2023, ARM Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef SIGI_DEF_H
8 #define SIGI_DEF_H
9 
10 #include <stdint.h>
11 
12 #define PLATFORM_NAME   "hobot sigi virt platform"
13 
14 /* Clock configuration */
15 #define SIGI_OSC24M_CLK_IN_HZ		24000000
16 
17 /* UART configuration */
18 #define SIGI_UART0_BAUDRATE         115200
19 #define SIGI_UART0_CLK_IN_HZ        SIGI_OSC24M_CLK_IN_HZ
20 
21 unsigned int sigi_calc_core_pos(u_register_t mpidr);
22 void sigi_console_init(void);
23 void plat_sigi_gic_init(void);
24 void sigi_pwr_gic_on_finish(void);
25 void sigi_pwr_gic_off(void);
26 
27 /* PMU register offsets for CPU*/
28 enum {
29     CPU_CL0_C0_0            = 0x0214,
30     CPU_CL0_C0_1            = 0x0218,
31     CPU_CL0_C1_0            = 0x0220,
32     CPU_CL0_C1_1            = 0x0224,
33     CPU_CL0_C2_0            = 0x022c,
34     CPU_CL0_C2_1            = 0x0230,
35     CPU_CL0_C3_0            = 0x0238,
36     CPU_CL0_C3_1            = 0x023c,
37     CPU_CL1_C0_0            = 0x0240,
38     CPU_CL1_C0_1            = 0x0244,
39     CPU_CL1_C1_0            = 0x0248,
40     CPU_CL1_C1_1            = 0x024c,
41 };
42 
43 #define SIGI_PMU_BASE	0x23190000U
44 
45 #endif /* SIGI_DEF_H */