From 57adbf37e6177eab79277ce5406a9bbde930ee3c Mon Sep 17 00:00:00 2001 From: Alex Leibovich Date: Mon, 25 Feb 2019 12:24:29 +0200 Subject: ddr: a80x0: add DDR 32-bit mode support This commit introduces 32-bit DDR topology map initialization. For that purpose a new DDR32 build flag is added, with according documentation update. Change-Id: I169ff358c2923afd984e27bc126dc551dcaefc01 Signed-off-by: Alex Leibovich --- plat/marvell/marvell.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plat/marvell/marvell.mk') diff --git a/plat/marvell/marvell.mk b/plat/marvell/marvell.mk index d8be0dd17..82457536d 100644 --- a/plat/marvell/marvell.mk +++ b/plat/marvell/marvell.mk @@ -16,6 +16,10 @@ $(eval $(call add_define,MARVELL_SECURE_BOOT)) PALLADIUM := 0 $(eval $(call add_define,PALLADIUM)) +# Set board to work with DDR 32bit +DDR32 := 0 +$(eval $(call add_define,DDR32)) + ifeq (${MARVELL_SECURE_BOOT},1) DOIMAGE_SEC_FLAGS := -c $(DOIMAGE_SEC) DOIMAGE_LIBS_CHECK = \ -- cgit v1.2.3 From b5e3d54017b3f48033960d392aa98ba053adfd97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= Date: Wed, 21 Oct 2020 11:50:40 +0200 Subject: plat: marvell: armada: Building ${DOIMAGETOOL} is only for a8k MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently a3k target is misusing ${DOIMAGETOOL} target for building flash and UART images. It is not used for building image tool. So move ${DOIMAGETOOL} target from common marvell include file into a8k include file and add correct invocation of ${MAKE} into a3k for building flash and UART images. Part of this change is also checks that MV_DDR_PATH for a3k was specified by user as this option is required for building a3k flash and UART images. Signed-off-by: Pali Rohár Change-Id: I5ae9d08b8505460933f17836c9b6435fd6e51bb6 --- plat/marvell/marvell.mk | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'plat/marvell/marvell.mk') diff --git a/plat/marvell/marvell.mk b/plat/marvell/marvell.mk index 82457536d..b6a2b9995 100644 --- a/plat/marvell/marvell.mk +++ b/plat/marvell/marvell.mk @@ -19,40 +19,3 @@ $(eval $(call add_define,PALLADIUM)) # Set board to work with DDR 32bit DDR32 := 0 $(eval $(call add_define,DDR32)) - -ifeq (${MARVELL_SECURE_BOOT},1) -DOIMAGE_SEC_FLAGS := -c $(DOIMAGE_SEC) -DOIMAGE_LIBS_CHECK = \ - if ! [ -d "/usr/include/mbedtls" ]; then \ - echo "****************************************" >&2; \ - echo "Missing mbedTLS installation! " >&2; \ - echo "Please download it from \"tls.mbed.org\"" >&2; \ - echo "Alternatively on Debian/Ubuntu system install" >&2; \ - echo "\"libmbedtls-dev\" package" >&2; \ - echo "Make sure to use version 2.1.0 or later" >&2; \ - echo "****************************************" >&2; \ - exit 1; \ - else if ! [ -f "/usr/include/libconfig.h" ]; then \ - echo "********************************************************" >&2; \ - echo "Missing Libconfig installation!" >&2; \ - echo "Please download it from \"www.hyperrealm.com/libconfig/\"" >&2; \ - echo "Alternatively on Debian/Ubuntu system install packages" >&2; \ - echo "\"libconfig8\" and \"libconfig8-dev\"" >&2; \ - echo "********************************************************" >&2; \ - exit 1; \ - fi \ - fi -else #MARVELL_SECURE_BOOT -DOIMAGE_LIBS_CHECK = -DOIMAGE_SEC_FLAGS = -endif #MARVELL_SECURE_BOOT - -mrvl_clean: - @echo " Doimage CLEAN" - ${Q}${MAKE} PLAT=${PLAT} --no-print-directory -C ${DOIMAGEPATH} clean - -${DOIMAGETOOL}: mrvl_clean - @$(DOIMAGE_LIBS_CHECK) - ${Q}${MAKE} --no-print-directory -C ${DOIMAGEPATH} VERSION=$(SUBVERSION) WTMI_IMG=$(WTMI_IMG) - - -- cgit v1.2.3