From 456b8aa442f0e54db9c38cedf548a4f14cee1f59 Mon Sep 17 00:00:00 2001 From: Vince Hsu Date: Wed, 16 Jul 2014 10:37:16 +0800 Subject: Add Tegra132 support for the cbootimage utility This patch adds support for Tegra132. This are only slight differences between Tegra124 and Tegra132. The command line usage is exactly the same as other platforms like Tegra124. The structure nvboot_mts_info is added into the bct for Tegra132. So the bootrom and first stage bootloader know where to load the preboot and mts images. Two parse items "Mts=" and "MtsPreboot=" are added to embedded MTS images in BCT image like what we do for bootloader. The syntax is also the same. For example: MtsPreboot = ,,,Complete; Mts = ,,,Complete; The load and entry addresses depned on your board design. Four files are added in src/t132: nvbctlib_t132.c - is cloned from nvbctlib_t124.c and adds mts information getter and setter. nvboot_bct_t132.h - adds mts structure into bct nvboot_sdram_param_t132.h - clone of nvboot_sdram_param_t124.h parse_t132.c - clone of parse_t124.c Signed-off-by: Vince Hsu Acked-by: Allen Martin --- src/Makefile.am | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index a0b95a9..90f0bdf 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -11,10 +11,12 @@ cbootimage_SOURCES = \ aes_ref.c \ context.c \ parse.c \ + t132/parse_t132.c \ t124/parse_t124.c \ t114/parse_t114.c \ t30/parse_t30.c \ t20/parse_t20.c \ + t132/nvbctlib_t132.c \ t124/nvbctlib_t124.c \ t114/nvbctlib_t114.c \ t30/nvbctlib_t30.c \ @@ -33,7 +35,9 @@ cbootimage_SOURCES = \ t114/nvboot_bct_t114.h \ t114/nvboot_sdram_param_t114.h \ t124/nvboot_bct_t124.h \ - t124/nvboot_sdram_param_t124.h + t124/nvboot_sdram_param_t124.h \ + t132/nvboot_bct_t132.h \ + t132/nvboot_sdram_param_t132.h cbootimage_LDADD = -lm @@ -45,10 +49,12 @@ bct_dump_SOURCES = \ aes_ref.c \ context.c \ parse.c \ + t132/parse_t132.c \ t124/parse_t124.c \ t114/parse_t114.c \ t30/parse_t30.c \ t20/parse_t20.c \ + t132/nvbctlib_t132.c \ t124/nvbctlib_t124.c \ t114/nvbctlib_t114.c \ t30/nvbctlib_t30.c \ @@ -67,4 +73,6 @@ bct_dump_SOURCES = \ t114/nvboot_bct_t114.h \ t114/nvboot_sdram_param_t114.h \ t124/nvboot_bct_t124.h \ - t124/nvboot_sdram_param_t124.h + t124/nvboot_sdram_param_t124.h \ + t132/nvboot_bct_t132.h \ + t132/nvboot_sdram_param_t132.h -- cgit v1.2.1