From c13fc15a45560b84da77a9ca74af050d1bc19bec Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Mon, 14 Jul 2014 19:13:07 -0500 Subject: t132: add Kconfig option for MTS microcode directory In order to make sharing of the location of MTS microcode easier provide a Kconfig option that is the path to the files. BUG=chrome-os-partner:30569 BRANCH=None TEST=Built rush coreboot. Original-Change-Id: I36775d0018fc8591d5e77c2943e28a51381713f5 Original-Signed-off-by: Aaron Durbin Original-Reviewed-on: https://chromium-review.googlesource.com/207839 Original-Reviewed-by: Tom Warren Original-Reviewed-by: Furquan Shaikh (cherry picked from commit 6f1de0e7fd312c1d6798e65d4b43d586f0994337) Signed-off-by: Marc Jones Change-Id: I660cb9d8bd13c765c89b54b0807b5b3ee836e807 Reviewed-on: http://review.coreboot.org/8614 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel --- src/soc/nvidia/tegra132/Kconfig | 6 ++++++ src/soc/nvidia/tegra132/Makefile.inc | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/soc/nvidia/tegra132/Kconfig b/src/soc/nvidia/tegra132/Kconfig index 4dcf26f09c..3396cc89a7 100644 --- a/src/soc/nvidia/tegra132/Kconfig +++ b/src/soc/nvidia/tegra132/Kconfig @@ -87,4 +87,10 @@ config CONSOLE_PRERAM_BUFFER_BASE hex "memory address of the CBMEM console buffer" default 0x40004020 +config MTS_DIRECTORY + string "Directory where MTS microcode files are located" + default "3rdparty/cpu/nvidia/tegra132/current/prod" + help + Path to directory where MTS microcode files are located. + endif diff --git a/src/soc/nvidia/tegra132/Makefile.inc b/src/soc/nvidia/tegra132/Makefile.inc index 7371dbb7ec..88ba51c398 100644 --- a/src/soc/nvidia/tegra132/Makefile.inc +++ b/src/soc/nvidia/tegra132/Makefile.inc @@ -74,7 +74,8 @@ $(obj)/generated/bct.bin: $(obj)/generated/bct.cfg $(CBOOTIMAGE) BCT_BIN = $(obj)/generated/bct.bin BCT_WRAPPER = $(obj)/generated/bct.wrapper -PREBOOT_MTS_FILE = 3rdparty/cpu/nvidia/tegra132/current/prod/preboot_cr.bin +MTS_DIR = $(CONFIG_MTS_DIRECTORY) +PREBOOT_MTS_FILE = $(MTS_DIR)/preboot_cr.bin $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin $(BCT_BIN) $(CBOOTIMAGE) echo "Version = 1;" > $(BCT_WRAPPER) echo "Redundancy = 1;" >> $(BCT_WRAPPER) @@ -84,3 +85,10 @@ $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin $(BCT_BIN) $(CBOOTIMAGE) echo "BootLoader = $<,$(CONFIG_BOOTBLOCK_BASE),$(CONFIG_BOOTBLOCK_BASE),Complete;" >> $(BCT_WRAPPER) @printf " CBOOTIMAGE $(subst $(obj)/,,$(@))\n" $(CBOOTIMAGE) $(CBOOTIMAGE_OPTS) $(BCT_WRAPPER) $@ + +# MTS microcode +MTS_FILE = $(MTS_DIR)/mts_cr.bin +MTS_FILE_CBFS = mts +cbfs-files-y += $(MTS_FILE_CBFS) +$(MTS_FILE_CBFS)-file := $(MTS_FILE) +$(MTS_FILE_CBFS)-type := 0x50 -- cgit v1.2.3