diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/nvidia/tegra132/Kconfig | 6 | ||||
-rw-r--r-- | src/soc/nvidia/tegra132/Makefile.inc | 10 |
2 files changed, 15 insertions, 1 deletions
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 |