Jiafei Pan | b9d543c | 2022-02-18 15:26:08 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2022 NXP |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | # |
| 7 | #------------------------------------------------------------------------------ |
| 8 | # |
| 9 | # This file contains the basic architecture definitions that drive the build |
| 10 | # |
| 11 | # ----------------------------------------------------------------------------- |
| 12 | |
| 13 | CORE_TYPE := a53 |
| 14 | |
| 15 | CACHE_LINE := 6 |
| 16 | |
| 17 | # Set to GIC400 or GIC500 |
| 18 | GIC := GIC500 |
| 19 | |
| 20 | # Set to CCI400 or CCN504 or CCN508 |
| 21 | INTERCONNECT := CCI400 |
| 22 | |
| 23 | # Select the DDR PHY generation to be used |
| 24 | PLAT_DDR_PHY := PHY_GEN1 |
| 25 | |
| 26 | PHYS_SYS := 64 |
| 27 | |
| 28 | # Indicate layerscape chassis level - set to 3=LSCH3 or 2=LSCH2 |
| 29 | CHASSIS := 3 |
| 30 | |
| 31 | # TZC IP Details TZC used is TZC380 or TZC400 |
| 32 | TZC_ID := TZC400 |
| 33 | |
| 34 | # CONSOLE Details available is NS16550 or PL011 |
| 35 | CONSOLE := NS16550 |
| 36 | |
| 37 | NXP_SFP_VER := 3_4 |
| 38 | |
| 39 | # In IMAGE_BL2, compile time flag for handling Cache coherency |
| 40 | # with CAAM for BL2 running from OCRAM |
| 41 | SEC_MEM_NON_COHERENT := yes |
| 42 | |
| 43 | |
| 44 | # OCRAM MAP for BL2 |
| 45 | # Before BL2 |
| 46 | # 0x18000000 - 0x18009fff -> Used by ROM code, (TBD - can it be used for xlat tables) |
| 47 | # 0x1800a000 - 0x1801Cfff -> Reserved for BL2 binary (76 KB) |
| 48 | # 0x1801D000 - 0x1801ffff -> CSF header for BL2 (12 KB) |
| 49 | OCRAM_START_ADDR := 0x18000000 |
| 50 | OCRAM_SIZE := 0x20000 |
| 51 | |
| 52 | CSF_HDR_SZ := 0x3000 |
| 53 | |
| 54 | # Area of OCRAM reserved by ROM code |
| 55 | NXP_ROM_RSVD := 0xa000 |
| 56 | |
| 57 | # Input to CST create_hdr_isbc tool |
| 58 | BL2_HDR_LOC := 0x1801D000 |
| 59 | |
| 60 | # Location of BL2 on OCRAM |
| 61 | # BL2_BASE=OCRAM_START_ADDR+NXP_ROM_RSVD |
| 62 | BL2_BASE := 0x1800a000 |
| 63 | |
| 64 | # SoC ERRATUM to be enabled |
Jiafei Pan | b9d543c | 2022-02-18 15:26:08 +0800 | [diff] [blame] | 65 | |
| 66 | # ARM Erratum |
| 67 | ERRATA_A53_855873 := 1 |
| 68 | |
| 69 | # DDR Erratum |
| 70 | ERRATA_DDR_A008511 := 1 |
| 71 | ERRATA_DDR_A009803 := 1 |
| 72 | ERRATA_DDR_A009942 := 1 |
| 73 | ERRATA_DDR_A010165 := 1 |
| 74 | |
| 75 | # Define Endianness of each module |
| 76 | NXP_ESDHC_ENDIANNESS := LE |
| 77 | NXP_SFP_ENDIANNESS := LE |
| 78 | NXP_GPIO_ENDIANNESS := LE |
| 79 | NXP_SNVS_ENDIANNESS := LE |
| 80 | NXP_GUR_ENDIANNESS := LE |
| 81 | NXP_SEC_ENDIANNESS := LE |
| 82 | NXP_DDR_ENDIANNESS := LE |
| 83 | NXP_QSPI_ENDIANNESS := LE |
| 84 | |
| 85 | # OCRAM ECC Enabled |
| 86 | OCRAM_ECC_EN := yes |