Antonio Nino Diaz | 7298c1f | 2018-12-05 00:09:30 +0000 | [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 GXBB_PRIVATE_H |
| 8 | #define GXBB_PRIVATE_H |
| 9 | |
| 10 | #include <stdint.h> |
| 11 | |
| 12 | /* Utility functions */ |
| 13 | unsigned int plat_gxbb_calc_core_pos(u_register_t mpidr); |
| 14 | void gxbb_console_init(void); |
| 15 | void gxbb_setup_page_tables(void); |
| 16 | |
| 17 | /* MHU functions */ |
| 18 | void mhu_secure_message_start(void); |
| 19 | void mhu_secure_message_send(uint32_t msg); |
| 20 | uint32_t mhu_secure_message_wait(void); |
| 21 | void mhu_secure_message_end(void); |
| 22 | void mhu_secure_init(void); |
| 23 | |
| 24 | /* SCPI functions */ |
| 25 | void scpi_set_css_power_state(u_register_t mpidr, uint32_t cpu_state, |
| 26 | uint32_t cluster_state, uint32_t css_state); |
| 27 | uint32_t scpi_sys_power_state(uint64_t system_state); |
| 28 | void scpi_jtag_set_state(uint32_t state, uint8_t select); |
| 29 | uint32_t scpi_efuse_read(void *dst, uint32_t base, uint32_t size); |
| 30 | void scpi_unknown_thermal(uint32_t arg0, uint32_t arg1, |
| 31 | uint32_t arg2, uint32_t arg3); |
| 32 | |
| 33 | /* Peripherals */ |
| 34 | void gxbb_thermal_unknown(void); |
| 35 | uint64_t gxbb_efuse_read(void *dst, uint32_t offset, uint32_t size); |
| 36 | uint64_t gxbb_efuse_user_max(void); |
| 37 | |
| 38 | #endif /* GXBB_PRIVATE_H */ |