blob: 763d3a536a7d6e4b679751326255acc38538f264 [file] [log] [blame]
Biju Dasfb0e5502020-12-07 13:25:07 +00001/*
2 * Copyright (c) 2020, Renesas Electronics Corporation. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#define RCAR_SA0_SIZE_SMALL (0) /* for RZ/G2E */
8#define RCAR_SA0_SIZE_NORMAL (1) /* for RZ/G2[HMN] */
9
10#define BL2_ADDRESS (0xE6304000) /* BL2 start address */
11
12#if (RCAR_SA0_SIZE == RCAR_SA0_SIZE_SMALL)
13#define BL2_SIZE (80*1024/4) /* BL2 size is 80KB(0x00005000) */
14#else /* (RCAR_SA0_SIZE == RCAR_SA0_SIZE_SMALL) */
15#define BL2_SIZE (170*1024/4) /* BL2 size is 170KB(0x0000AA00) */
16#endif /* (RCAR_SA0_SIZE == RCAR_SA0_SIZE_SMALL) */
17
18/* SA0 */
19/* 0x00000000 */
20const unsigned int __attribute__ ((section(".sa0_bootrom"))) bootrom_paramA = 0x00000100;
21/* 0x00000080 (Map Type 3 for eMMC Boot)*/
22/* 0x000001D4 */
23const unsigned int __attribute__ ((section(".sa0_bl2dst_addr3"))) bl2dst_addr3 = BL2_ADDRESS;
24/* 0x000002E4 */
25const unsigned int __attribute__ ((section(".sa0_bl2dst_size3"))) bl2dst_size3 = BL2_SIZE;
26/* 0x00000C00 (Map Type 1 for HyperFlash/QSPI Flash Boot)*/
27/* 0x00000D54 */
28const unsigned int __attribute__ ((section(".sa0_bl2dst_addr1"))) bl2dst_addr1 = BL2_ADDRESS;
29/* 0x00000E64 */
30const unsigned int __attribute__ ((section(".sa0_bl2dst_size1"))) bl2dst_size1 = BL2_SIZE;