summaryrefslogtreecommitdiff
path: root/src/cbootimage.c
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.c
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.c')
-rw-r--r--src/cbootimage.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/cbootimage.c b/src/cbootimage.c
index 2fdb0f2..5f746e3 100644
--- a/src/cbootimage.c
+++ b/src/cbootimage.c
@@ -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,
@@ -71,10 +71,11 @@ usage(void)
printf(" -gbct Generate the new bct file.\n");
printf(" -o<ODM_DATA> Specify the odm_data(in hex).\n");
printf(" -t|--tegra NN Select target device. Must be one of:\n");
- printf(" 20, 30, 114, 124.\n");
+ printf(" 20, 30, 114, 124, 132.\n");
printf(" Default: 20. This option is deprecated\n");
printf(" -s|--soc tegraNN Select target device. Must be one of:\n");
- printf(" tegra20, tegra30, tegra114, tegra124.\n");
+ printf(" tegra20, tegra30, tegra114, tegra124,\n");
+ printf(" tegra132.\n");
printf(" Default: tegra20.\n");
printf(" -u|--update Copy input image data and update bct\n");
printf(" configs into new image file.\n");
@@ -128,6 +129,8 @@ process_command_line(int argc, char *argv[], build_image_context *context)
t114_get_soc_config(context, &g_soc_config);
} else if (!strcasecmp("124", optarg)) {
t124_get_soc_config(context, &g_soc_config);
+ } else if (!strcasecmp("132", optarg)) {
+ t132_get_soc_config(context, &g_soc_config);
} else {
printf("Unsupported chipname!\n");
usage();