From 2c8b0b137382c969d791c734dca7c1a7a03b07ca Mon Sep 17 00:00:00 2001 From: Ruilin Hao Date: Mon, 9 Nov 2015 22:37:09 -0800 Subject: soc/marvell/armada38x: Add generic support for armada38x Skeleton for soc armada38x BUG=chrome-os-partner:47462 TEST=None BRANCH=tot Change-Id: I76f631ee6cdfc90c44727cb20aa960796bc785a5 Signed-off-by: Patrick Georgi Original-Commit-Id: e91cc19468325f005c6ac920bbe27a174c409727 Original-Change-Id: Iac5fc34df1ba18b4515029aa2fcff8f78a5df191 Original-Signed-off-by: Ruilin Hao Original-Reviewed-on: https://chromium-review.googlesource.com/313179 Original-Commit-Ready: Kan Yan Original-Tested-by: Kan Yan Original-Reviewed-by: Kan Yan Reviewed-on: https://review.coreboot.org/13110 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Stefan Reinauer --- src/soc/marvell/armada38x/Makefile.inc | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/soc/marvell/armada38x/Makefile.inc (limited to 'src/soc/marvell/armada38x/Makefile.inc') diff --git a/src/soc/marvell/armada38x/Makefile.inc b/src/soc/marvell/armada38x/Makefile.inc new file mode 100644 index 0000000000..416ad74d87 --- /dev/null +++ b/src/soc/marvell/armada38x/Makefile.inc @@ -0,0 +1,31 @@ +ifeq ($(CONFIG_SOC_MARVELL_ARMADA38X),y) + +bootblock-y += bootblock.c +bootblock-y += bootblock_asm.S +bootblock-y += monotonic_timer.c +ifeq ($(CONFIG_BOOTBLOCK_CONSOLE),y) +bootblock-$(CONFIG_DRIVERS_UART) += uart.c +endif + +verstage-$(CONFIG_DRIVERS_UART) += uart.c +verstage-y += monotonic_timer.c + +romstage-y += cbmem.c +romstage-y += monotonic_timer.c +romstage-$(CONFIG_DRIVERS_UART) += uart.c + +ramstage-y += cbmem.c +ramstage-y += monotonic_timer.c +ramstage-y += soc.c +ramstage-$(CONFIG_DRIVERS_UART) += uart.c + +CPPFLAGS_common += -Isrc/soc/marvell/armada38x/include/ + +BIN_HDR = 3rdparty/blobs/cpu/marvell/armada38x/bin_hdr.bin +DOIMAGE = 3rdparty/blobs/cpu/marvell/armada38x/doimage + +$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin + @chmod a+x $(DOIMAGE) + $(DOIMAGE) -T flash -D 0 -E 0 -G $(BIN_HDR) $< $@ + rm $< +endif -- cgit v1.2.3