Pankaj Gupta | 69e0c70 | 2020-12-09 14:02:41 +0530 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2018-2020 NXP |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | # board-specific build parameters |
| 8 | |
| 9 | BOOT_MODE ?= flexspi_nor |
| 10 | BOARD ?= lx2162aqds |
| 11 | POVDD_ENABLE := no |
| 12 | NXP_COINED_BB := no |
| 13 | |
| 14 | # DDR Compilation Configs |
| 15 | NUM_OF_DDRC := 1 |
| 16 | DDRC_NUM_DIMM := 1 |
| 17 | DDRC_NUM_CS := 2 |
| 18 | DDR_ECC_EN := yes |
| 19 | #enable address decoding feature |
| 20 | DDR_ADDR_DEC := yes |
| 21 | APPLY_MAX_CDD := yes |
| 22 | |
| 23 | # DDR Errata |
| 24 | ERRATA_DDR_A011396 := 1 |
| 25 | ERRATA_DDR_A050450 := 1 |
| 26 | |
| 27 | |
Jiafei Pan | adf14fe | 2021-01-04 15:59:54 +0800 | [diff] [blame] | 28 | # On-Board Flash Details |
Pankaj Gupta | 69e0c70 | 2020-12-09 14:02:41 +0530 | [diff] [blame] | 29 | FLASH_TYPE := MT35XU512A |
| 30 | XSPI_FLASH_SZ := 0x10000000 |
| 31 | NXP_XSPI_NOR_UNIT_SIZE := 0x20000 |
| 32 | BL2_BIN_XSPI_NOR_END_ADDRESS := 0x100000 |
| 33 | # CONFIG_FSPI_ERASE_4K is required to erase 4K sector sizes. This |
| 34 | # config is enabled for future use cases. |
| 35 | FSPI_ERASE_4K := 0 |
| 36 | |
Jiafei Pan | adf14fe | 2021-01-04 15:59:54 +0800 | [diff] [blame] | 37 | # Platform specific features. |
Pankaj Gupta | 69e0c70 | 2020-12-09 14:02:41 +0530 | [diff] [blame] | 38 | WARM_BOOT := yes |
| 39 | |
Jiafei Pan | adf14fe | 2021-01-04 15:59:54 +0800 | [diff] [blame] | 40 | # Adding Platform files build files |
Pankaj Gupta | 69e0c70 | 2020-12-09 14:02:41 +0530 | [diff] [blame] | 41 | BL2_SOURCES += ${BOARD_PATH}/ddr_init.c\ |
| 42 | ${BOARD_PATH}/platform.c |
| 43 | |
Jiafei Pan | 7786213 | 2021-04-27 14:49:22 +0800 | [diff] [blame] | 44 | SUPPORTED_BOOT_MODE := flexspi_nor \ |
| 45 | sd \ |
| 46 | emmc |
| 47 | |
Jiafei Pan | adf14fe | 2021-01-04 15:59:54 +0800 | [diff] [blame] | 48 | # Adding platform board build info |
| 49 | include plat/nxp/common/plat_make_helper/plat_common_def.mk |
| 50 | |
| 51 | # Adding SoC build info |
Pankaj Gupta | 69e0c70 | 2020-12-09 14:02:41 +0530 | [diff] [blame] | 52 | include plat/nxp/soc-lx2160a/soc.mk |