Manoj Kumar | 69bebd8 | 2019-06-21 17:07:13 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 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 Pandey | 2f3203f | 2019-10-07 17:47:46 +0100 | [diff] [blame] | 18 | /* 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 |
| 23 | #define N1SDP_MAX_SLAVE_COUNT 16 |
Manoj Kumar | 69bebd8 | 2019-06-21 17:07:13 +0100 | [diff] [blame] | 24 | |
| 25 | /* SDS BL33 image information defines */ |
| 26 | #define N1SDP_SDS_BL33_INFO_STRUCT_ID 9 |
| 27 | #define N1SDP_SDS_BL33_INFO_OFFSET 0 |
| 28 | #define N1SDP_SDS_BL33_INFO_SIZE 12 |
| 29 | |
Manoj Kumar | 75e4ccb | 2019-07-22 16:10:12 +0100 | [diff] [blame] | 30 | /* DMC memory command registers */ |
| 31 | #define N1SDP_DMC0_MEMC_CMD_REG 0x4E000008 |
| 32 | #define N1SDP_DMC1_MEMC_CMD_REG 0x4E100008 |
| 33 | |
Manoj Kumar | 69bebd8 | 2019-06-21 17:07:13 +0100 | [diff] [blame] | 34 | /* DMC ERR0CTLR0 registers */ |
| 35 | #define N1SDP_DMC0_ERR0CTLR0_REG 0x4E000708 |
| 36 | #define N1SDP_DMC1_ERR0CTLR0_REG 0x4E100708 |
| 37 | |
Manish Pandey | b68e286 | 2019-09-11 17:07:40 +0100 | [diff] [blame] | 38 | /* Remote DMC memory command registers */ |
| 39 | #define N1SDP_REMOTE_DMC0_MEMC_CMD_REG PLAT_ARM_REMOTE_CHIP_OFFSET +\ |
| 40 | N1SDP_DMC0_MEMC_CMD_REG |
| 41 | #define N1SDP_REMOTE_DMC1_MEMC_CMD_REG PLAT_ARM_REMOTE_CHIP_OFFSET +\ |
| 42 | N1SDP_DMC1_MEMC_CMD_REG |
| 43 | |
| 44 | /* Remote DMC ERR0CTLR0 registers */ |
| 45 | #define N1SDP_REMOTE_DMC0_ERR0CTLR0_REG PLAT_ARM_REMOTE_CHIP_OFFSET +\ |
| 46 | N1SDP_DMC0_ERR0CTLR0_REG |
| 47 | #define N1SDP_REMOTE_DMC1_ERR0CTLR0_REG PLAT_ARM_REMOTE_CHIP_OFFSET +\ |
| 48 | N1SDP_DMC1_ERR0CTLR0_REG |
| 49 | |
Manoj Kumar | 75e4ccb | 2019-07-22 16:10:12 +0100 | [diff] [blame] | 50 | /* DMC memory commands */ |
| 51 | #define N1SDP_DMC_MEMC_CMD_CONFIG 0 |
| 52 | #define N1SDP_DMC_MEMC_CMD_READY 3 |
| 53 | |
Manoj Kumar | 69bebd8 | 2019-06-21 17:07:13 +0100 | [diff] [blame] | 54 | /* DMC ECC enable bit in ERR0CTLR0 register */ |
| 55 | #define N1SDP_DMC_ERR0CTLR0_ECC_EN 0x1 |
| 56 | |
Manish Pandey | 2f3203f | 2019-10-07 17:47:46 +0100 | [diff] [blame] | 57 | /* Base address of non-secure SRAM where Platform information will be filled */ |
| 58 | #define N1SDP_PLATFORM_INFO_BASE 0x06008000 |
Manoj Kumar | 69bebd8 | 2019-06-21 17:07:13 +0100 | [diff] [blame] | 59 | |
| 60 | #endif /* N1SDP_DEF_H */ |