blob: ffa6a03e8aa08e3d273977b1ac15bdeedcc12a63 [file] [log] [blame]
Manoj Kumar69bebd82019-06-21 17:07:13 +01001/*
sah016ec01e82021-06-06 14:38:01 +05302 * Copyright (c) 2018-2022, Arm Limited. All rights reserved.
Manoj Kumar69bebd82019-06-21 17:07:13 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef N1SDP_DEF_H
8#define N1SDP_DEF_H
9
10/* Non-secure SRAM MMU mapping */
11#define N1SDP_NS_SRAM_BASE (0x06000000)
12#define N1SDP_NS_SRAM_SIZE (0x00010000)
13#define N1SDP_MAP_NS_SRAM MAP_REGION_FLAT( \
14 N1SDP_NS_SRAM_BASE, \
15 N1SDP_NS_SRAM_SIZE, \
16 MT_DEVICE | MT_RW | MT_SECURE)
17
Manish Pandey2f3203f2019-10-07 17:47:46 +010018/* SDS Platform information defines */
19#define N1SDP_SDS_PLATFORM_INFO_STRUCT_ID 8
20#define N1SDP_SDS_PLATFORM_INFO_OFFSET 0
21#define N1SDP_SDS_PLATFORM_INFO_SIZE 4
22#define N1SDP_MAX_DDR_CAPACITY_GB 64
sah016ec01e82021-06-06 14:38:01 +053023#define N1SDP_MAX_SECONDARY_COUNT 16
Manoj Kumar69bebd82019-06-21 17:07:13 +010024
Manoj Kumar75e4ccb2019-07-22 16:10:12 +010025/* DMC memory command registers */
26#define N1SDP_DMC0_MEMC_CMD_REG 0x4E000008
27#define N1SDP_DMC1_MEMC_CMD_REG 0x4E100008
28
Manoj Kumar69bebd82019-06-21 17:07:13 +010029/* DMC ERR0CTLR0 registers */
30#define N1SDP_DMC0_ERR0CTLR0_REG 0x4E000708
31#define N1SDP_DMC1_ERR0CTLR0_REG 0x4E100708
32
Manish Pandeyb68e2862019-09-11 17:07:40 +010033/* Remote DMC memory command registers */
34#define N1SDP_REMOTE_DMC0_MEMC_CMD_REG PLAT_ARM_REMOTE_CHIP_OFFSET +\
35 N1SDP_DMC0_MEMC_CMD_REG
36#define N1SDP_REMOTE_DMC1_MEMC_CMD_REG PLAT_ARM_REMOTE_CHIP_OFFSET +\
37 N1SDP_DMC1_MEMC_CMD_REG
38
39/* Remote DMC ERR0CTLR0 registers */
40#define N1SDP_REMOTE_DMC0_ERR0CTLR0_REG PLAT_ARM_REMOTE_CHIP_OFFSET +\
41 N1SDP_DMC0_ERR0CTLR0_REG
42#define N1SDP_REMOTE_DMC1_ERR0CTLR0_REG PLAT_ARM_REMOTE_CHIP_OFFSET +\
43 N1SDP_DMC1_ERR0CTLR0_REG
44
Manoj Kumar75e4ccb2019-07-22 16:10:12 +010045/* DMC memory commands */
46#define N1SDP_DMC_MEMC_CMD_CONFIG 0
47#define N1SDP_DMC_MEMC_CMD_READY 3
48
Manoj Kumar69bebd82019-06-21 17:07:13 +010049/* DMC ECC enable bit in ERR0CTLR0 register */
50#define N1SDP_DMC_ERR0CTLR0_ECC_EN 0x1
51
Manoj Kumar69bebd82019-06-21 17:07:13 +010052#endif /* N1SDP_DEF_H */