summaryrefslogtreecommitdiff
path: root/src/cbootimage.h
diff options
context:
space:
mode:
authorVince Hsu <vinceh@nvidia.com>2014-07-16 10:37:16 +0800
committerAllen Martin <amartin@nvidia.com>2014-07-15 21:42:46 -0700
commit456b8aa442f0e54db9c38cedf548a4f14cee1f59 (patch)
treecf26e7ce79d14e8ff85197b6188bc0813db1e1b8 /src/cbootimage.h
parent3717d5efb02b96104c0533df463d148faeb7afa1 (diff)
downloadnvidia-cbootimage-456b8aa442f0e54db9c38cedf548a4f14cee1f59.tar.gz
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 = <preboot_image>,<load_address>,<entry_address>,Complete; Mts = <mts_image>,<load_address>,<entry_address>,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 <vinceh@nvidia.com> Acked-by: Allen Martin <amartin@nvidia.com>
Diffstat (limited to 'src/cbootimage.h')
-rw-r--r--src/cbootimage.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/cbootimage.h b/src/cbootimage.h
index baade00..c33e323 100644
--- a/src/cbootimage.h
+++ b/src/cbootimage.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2012-2014, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
@@ -44,8 +44,11 @@
#define BOOTDATA_VERSION_T30 NVBOOT_BOOTDATA_VERSION(0x3, 0x1)
#define BOOTDATA_VERSION_T114 NVBOOT_BOOTDATA_VERSION(0x35, 0x1)
#define BOOTDATA_VERSION_T124 NVBOOT_BOOTDATA_VERSION(0x40, 0x1)
+#define BOOTDATA_VERSION_T132 NVBOOT_BOOTDATA_VERSION(0x13, 0x1)
-#define NVBOOT_CONFIG_TABLE_SIZE_MAX 8192
+#define MAX_MTS_SIZE (4 * 1024 * 1024)
+
+#define NVBOOT_CONFIG_TABLE_SIZE_MAX 8704
/*
* Enumerations
@@ -55,6 +58,7 @@ typedef enum
{
file_type_bl = 0,
file_type_bct,
+ file_type_mts,
} file_type;
/*
@@ -94,6 +98,11 @@ typedef struct build_image_context_rec
u_int8_t generate_bct;
u_int8_t *bct;
+ char *mts_filename;
+ u_int32_t mts_load_addr;
+ u_int32_t mts_entry_point;
+ u_int32_t mts_attr;
+
char *bct_filename;
u_int32_t last_blk;
u_int32_t bct_size; /* The BCT file size */