blob: 952ad530243ce72ce785cc11eb6ef4e3c16f9d7f [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
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef PLAT_IMX8_H
8#define PLAT_IMX8_H
Anson Huang4c28fc32018-06-05 16:12:27 +08009
Antonio Nino Diaze0f90632018-12-14 00:18:21 +000010#include <drivers/arm/gicv3.h>
11#include <lib/psci/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 Huange1d418c2019-01-18 10:01:50 +080026bool imx_is_wakeup_src_irqsteer(void);
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000027
28#endif /* PLAT_IMX8_H */