Sumit Garg | 4d4df11 | 2018-06-15 14:43:35 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef __SQ_COMMON_H__ |
| 8 | #define __SQ_COMMON_H__ |
| 9 | |
| 10 | #include <sys/types.h> |
Sumit Garg | 470255b | 2018-06-15 15:10:16 +0530 | [diff] [blame] | 11 | #include <xlat_tables_v2.h> |
Sumit Garg | 4d4df11 | 2018-06-15 14:43:35 +0530 | [diff] [blame] | 12 | |
Sumit Garg | fe71761 | 2018-06-15 15:17:10 +0530 | [diff] [blame] | 13 | void plat_sq_pwrc_setup(void); |
| 14 | |
Sumit Garg | bda9d3c | 2018-06-15 14:50:19 +0530 | [diff] [blame] | 15 | void plat_sq_interconnect_init(void); |
| 16 | void plat_sq_interconnect_enter_coherency(void); |
| 17 | void plat_sq_interconnect_exit_coherency(void); |
| 18 | |
Sumit Garg | 4d4df11 | 2018-06-15 14:43:35 +0530 | [diff] [blame] | 19 | unsigned int sq_calc_core_pos(u_register_t mpidr); |
| 20 | |
Sumit Garg | c412c2c | 2018-06-15 14:58:25 +0530 | [diff] [blame] | 21 | void sq_gic_driver_init(void); |
| 22 | void sq_gic_init(void); |
| 23 | void sq_gic_cpuif_enable(void); |
| 24 | void sq_gic_cpuif_disable(void); |
| 25 | void sq_gic_pcpu_init(void); |
| 26 | |
Sumit Garg | 470255b | 2018-06-15 15:10:16 +0530 | [diff] [blame] | 27 | void sq_mmap_setup(uintptr_t total_base, size_t total_size, |
| 28 | const struct mmap_region *mmap); |
| 29 | |
Sumit Garg | 4d4df11 | 2018-06-15 14:43:35 +0530 | [diff] [blame] | 30 | #endif /* __SQ_COMMON_H__ */ |