blob: e713e2e03ea4f20e5925c595dc2d63c136250f07 [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_DEF_H__
8#define __HIKEY960_DEF_H__
9
10#include <common_def.h>
11#include <tbbr_img_def.h>
12
13#define DDR_BASE 0x0
14#define DDR_SIZE 0xC0000000
15
16#define DEVICE_BASE 0xE0000000
17#define DEVICE_SIZE 0x20000000
18
19/*
20 * PL011 related constants
21 */
22#define PL011_UART5_BASE 0xFDF05000
23#define PL011_UART6_BASE 0xFFF32000
24#define PL011_BAUDRATE 115200
25#define PL011_UART_CLK_IN_HZ 19200000
26
27#define UFS_BASE 0
28/* FIP partition */
29#define HIKEY960_FIP_BASE (UFS_BASE + 0x1400000)
30#define HIKEY960_FIP_MAX_SIZE (12 << 20)
31
32#define HIKEY960_UFS_DESC_BASE 0x20000000
33#define HIKEY960_UFS_DESC_SIZE 0x00200000 /* 2MB */
34#define HIKEY960_UFS_DATA_BASE 0x10000000
35#define HIKEY960_UFS_DATA_SIZE 0x0A000000 /* 160MB */
36
37#endif /* __HIKEY960_DEF_H__ */