blob: a333bfbe11202a1f4a752ed12a1bdf3661e1c526 [file] [log] [blame]
Anson Huang4c28fc32018-06-05 16:12:27 +08001/*
2 * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef __PLAT_IMX8_H__
8#define __PLAT_IMX8_H__
9
10#include <gicv3.h>
Anson Huang10cd8172018-07-12 14:17:19 +080011#include <psci.h>
Anson Huang4c28fc32018-06-05 16:12:27 +080012
13unsigned int plat_calc_core_pos(uint64_t mpidr);
14void imx_mailbox_init(uintptr_t base_addr);
15void plat_gic_driver_init(void);
16void plat_gic_init(void);
17void plat_gic_cpuif_enable(void);
18void plat_gic_cpuif_disable(void);
19void plat_gic_pcpu_init(void);
20
Anson Huangd2b90552018-07-12 10:52:55 +080021void __dead2 imx_system_off(void);
Anson Huang0da07d22018-07-12 11:04:15 +080022void __dead2 imx_system_reset(void);
Anson Huang10cd8172018-07-12 14:17:19 +080023int imx_validate_power_state(unsigned int power_state,
24 psci_power_state_t *req_state);
25void imx_get_sys_suspend_power_state(psci_power_state_t *req_state);
Anson Huang4c28fc32018-06-05 16:12:27 +080026#endif /*__PLAT_IMX8_H__ */