blob: 31d3a4ae391b3d5378e0af3fc93a5897209f14df [file] [log] [blame]
Haojian Zhuang602362d2017-06-01 12:15:14 +08001/*
2 * Copyright (c) 2017, 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 HIKEY960_PRIVATE_H
8#define HIKEY960_PRIVATE_H
Haojian Zhuang602362d2017-06-01 12:15:14 +08009
10#include <bl_common.h>
11
12/*
13 * Function and variable prototypes
14 */
15void hikey960_init_mmu_el1(unsigned long total_base,
16 unsigned long total_size,
17 unsigned long ro_start,
18 unsigned long ro_limit,
19 unsigned long coh_start,
20 unsigned long coh_limit);
21void hikey960_init_mmu_el3(unsigned long total_base,
22 unsigned long total_size,
23 unsigned long ro_start,
24 unsigned long ro_limit,
25 unsigned long coh_start,
26 unsigned long coh_limit);
27void hikey960_io_setup(void);
28int hikey960_read_boardid(unsigned int *id);
Haojian Zhuangd82e29d2018-03-05 13:20:33 +080029void hikey960_clk_init(void);
30void hikey960_pmu_init(void);
31void hikey960_regulator_enable(void);
32void hikey960_tzc_init(void);
33void hikey960_peri_init(void);
34void hikey960_pinmux_init(void);
Kaihua Zhong39ff2ee2018-07-16 17:33:48 +080035void hikey960_gpio_init(void);
Haojian Zhuang1b5c2252017-06-01 15:20:46 +080036void set_retention_ticks(unsigned int val);
37void clr_retention_ticks(unsigned int val);
38void clr_ex(void);
39void nop(void);
Haojian Zhuang602362d2017-06-01 12:15:14 +080040
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000041#endif /* HIKEY960_PRIVATE_H */