Pankaj Gupta | c518de4 | 2020-12-09 14:02:39 +0530 | [diff] [blame] | 1 | # |
Pankit Garg | dadba6e | 2021-07-13 13:40:06 +0530 | [diff] [blame] | 2 | # Copyright 2021-2022 NXP |
Pankaj Gupta | c518de4 | 2020-12-09 14:02:39 +0530 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
Pankaj Gupta | c518de4 | 2020-12-09 14:02:39 +0530 | [diff] [blame] | 7 | ifeq ($(PLAT_DDR_PHY), PHY_GEN2) |
| 8 | $(eval $(call add_define, PHY_GEN2)) |
| 9 | PLAT_DDR_PHY_DIR := phy-gen2 |
| 10 | ifeq (${APPLY_MAX_CDD},yes) |
| 11 | $(eval $(call add_define,NXP_APPLY_MAX_CDD)) |
| 12 | endif |
| 13 | |
| 14 | ifeq (${ERRATA_DDR_A011396}, 1) |
| 15 | $(eval $(call add_define,ERRATA_DDR_A011396)) |
| 16 | endif |
| 17 | |
| 18 | ifeq (${ERRATA_DDR_A050450}, 1) |
| 19 | $(eval $(call add_define,ERRATA_DDR_A050450)) |
| 20 | endif |
| 21 | |
Pankit Garg | dadba6e | 2021-07-13 13:40:06 +0530 | [diff] [blame] | 22 | ifeq (${ERRATA_DDR_A050958}, 1) |
| 23 | $(eval $(call add_define,ERRATA_DDR_A050958)) |
| 24 | endif |
| 25 | |
Pankaj Gupta | c518de4 | 2020-12-09 14:02:39 +0530 | [diff] [blame] | 26 | endif |
| 27 | |
| 28 | ifeq ($(PLAT_DDR_PHY), PHY_GEN1) |
| 29 | PLAT_DDR_PHY_DIR := phy-gen1 |
| 30 | |
| 31 | ifeq (${ERRATA_DDR_A008511},1) |
| 32 | $(eval $(call add_define,ERRATA_DDR_A008511)) |
| 33 | endif |
| 34 | |
| 35 | ifeq (${ERRATA_DDR_A009803},1) |
| 36 | $(eval $(call add_define,ERRATA_DDR_A009803)) |
| 37 | endif |
| 38 | |
| 39 | ifeq (${ERRATA_DDR_A009942},1) |
| 40 | $(eval $(call add_define,ERRATA_DDR_A009942)) |
| 41 | endif |
| 42 | |
| 43 | ifeq (${ERRATA_DDR_A010165},1) |
| 44 | $(eval $(call add_define,ERRATA_DDR_A010165)) |
| 45 | endif |
| 46 | |
| 47 | endif |
| 48 | |
| 49 | ifeq ($(DDR_BIST), yes) |
| 50 | $(eval $(call add_define, BIST_EN)) |
| 51 | endif |
| 52 | |
| 53 | ifeq ($(DDR_DEBUG), yes) |
| 54 | $(eval $(call add_define, DDR_DEBUG)) |
| 55 | endif |
| 56 | |
| 57 | ifeq ($(DDR_PHY_DEBUG), yes) |
| 58 | $(eval $(call add_define, DDR_PHY_DEBUG)) |
| 59 | endif |
| 60 | |
| 61 | ifeq ($(DEBUG_PHY_IO), yes) |
| 62 | $(eval $(call add_define, DEBUG_PHY_IO)) |
| 63 | endif |
| 64 | |
| 65 | ifeq ($(DEBUG_WARM_RESET), yes) |
| 66 | $(eval $(call add_define, DEBUG_WARM_RESET)) |
| 67 | endif |
| 68 | |
| 69 | ifeq ($(DEBUG_DDR_INPUT_CONFIG), yes) |
| 70 | $(eval $(call add_define, DEBUG_DDR_INPUT_CONFIG)) |
| 71 | endif |
| 72 | |
Pankaj Gupta | 7834b46 | 2021-03-25 15:15:52 +0530 | [diff] [blame] | 73 | DDR_CNTLR_SOURCES := $(PLAT_DRIVERS_PATH)/ddr/nxp-ddr/ddr.c \ |
| 74 | $(PLAT_DRIVERS_PATH)/ddr/nxp-ddr/ddrc.c \ |
| 75 | $(PLAT_DRIVERS_PATH)/ddr/nxp-ddr/dimm.c \ |
| 76 | $(PLAT_DRIVERS_PATH)/ddr/nxp-ddr/regs.c \ |
| 77 | $(PLAT_DRIVERS_PATH)/ddr/nxp-ddr/utility.c \ |
| 78 | $(PLAT_DRIVERS_PATH)/ddr/$(PLAT_DDR_PHY_DIR)/phy.c |
Pankaj Gupta | c518de4 | 2020-12-09 14:02:39 +0530 | [diff] [blame] | 79 | |
Pankaj Gupta | 7834b46 | 2021-03-25 15:15:52 +0530 | [diff] [blame] | 80 | PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/ddr |