blob: 03799c459b1ce1a38f73148ab8fdd65ca335acb2 [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
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);
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000026
27#endif /* PLAT_IMX8_H */