blob: 910a42c1cf177ca405b11155caf509d9f761bcdf [file] [log] [blame]
Antonio Nino Diaz7298c1f2018-12-05 00:09:30 +00001/*
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 */
13unsigned int plat_gxbb_calc_core_pos(u_register_t mpidr);
14void gxbb_console_init(void);
15void gxbb_setup_page_tables(void);
16
17/* MHU functions */
18void mhu_secure_message_start(void);
19void mhu_secure_message_send(uint32_t msg);
20uint32_t mhu_secure_message_wait(void);
21void mhu_secure_message_end(void);
22void mhu_secure_init(void);
23
24/* SCPI functions */
25void scpi_set_css_power_state(u_register_t mpidr, uint32_t cpu_state,
26 uint32_t cluster_state, uint32_t css_state);
27uint32_t scpi_sys_power_state(uint64_t system_state);
28void scpi_jtag_set_state(uint32_t state, uint8_t select);
29uint32_t scpi_efuse_read(void *dst, uint32_t base, uint32_t size);
30void scpi_unknown_thermal(uint32_t arg0, uint32_t arg1,
31 uint32_t arg2, uint32_t arg3);
32
33/* Peripherals */
34void gxbb_thermal_unknown(void);
35uint64_t gxbb_efuse_read(void *dst, uint32_t offset, uint32_t size);
36uint64_t gxbb_efuse_user_max(void);
37
38#endif /* GXBB_PRIVATE_H */