diff options
author | Penny Chiu <pchiu@nvidia.com> | 2014-04-11 17:50:43 +0800 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2014-04-15 12:02:07 -0600 |
commit | ef386340a60eb3d21f2215316e90dd4ba35fd27e (patch) | |
tree | f1c524838b5c9d2e4cfdf6f45ac5c1e33333fc5d /src/t114/nvbctlib_t114.c | |
parent | 5f0b21a2b62a2cafab0dc3848d5516d93b2288ae (diff) | |
download | cbootimage-ef386340a60eb3d21f2215316e90dd4ba35fd27e.tar.gz |
Add update BCT configs feature
This feature reads the BCT data from BCT or BCT with bootloader
appended binary, updates the BCT data based on config file, then
writes to new image file.
Signed-off-by: Penny Chiu <pchiu@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'src/t114/nvbctlib_t114.c')
-rw-r--r-- | src/t114/nvbctlib_t114.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/t114/nvbctlib_t114.c b/src/t114/nvbctlib_t114.c index 5b1f28b..dad8f4f 100644 --- a/src/t114/nvbctlib_t114.c +++ b/src/t114/nvbctlib_t114.c @@ -1064,6 +1064,11 @@ t114_bct_set_data(parse_token id, return 0; } +int t114_get_bct_size() +{ + return sizeof(nvboot_config_table); +} + int t114_bct_token_supported(parse_token token) { int index; @@ -1108,6 +1113,7 @@ cbootimage_soc_config tegra114_config = { .set_value = t114_bct_set_value, .get_value = t114_bct_get_value, .set_data = t114_bct_set_data, + .get_bct_size = t114_get_bct_size, .token_supported = t114_bct_token_supported, .devtype_table = s_devtype_table_t114, |