blob: e3c9d2153b2d3c39aa544b4c37d4b34972d8df4b [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
7#ifndef __HIKEY960_PRIVATE_H__
8#define __HIKEY960_PRIVATE_H__
9
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);
Victor Chong2d9a42d2017-08-17 15:21:10 +090027void hikey960_init_ufs(void);
Haojian Zhuang602362d2017-06-01 12:15:14 +080028void hikey960_io_setup(void);
29int hikey960_read_boardid(unsigned int *id);
Haojian Zhuang1b5c2252017-06-01 15:20:46 +080030void set_retention_ticks(unsigned int val);
31void clr_retention_ticks(unsigned int val);
32void clr_ex(void);
33void nop(void);
Haojian Zhuang602362d2017-06-01 12:15:14 +080034
35#endif /* __HIKEY960_PRIVATE_H__ */