diff options
Diffstat (limited to 'scripts/tegra/t30/nvbctlib_t30.c')
-rw-r--r-- | scripts/tegra/t30/nvbctlib_t30.c | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/scripts/tegra/t30/nvbctlib_t30.c b/scripts/tegra/t30/nvbctlib_t30.c index 59b0246fbf..77c4aceb0a 100644 --- a/scripts/tegra/t30/nvbctlib_t30.c +++ b/scripts/tegra/t30/nvbctlib_t30.c @@ -1,21 +1,5 @@ -/* - * Copyright (c) 2012, 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, - * version 2, as published by the Free Software Foundation. - * - * This program is distributed in the hope it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. - */ +// SPDX-License-Identifier: GPL-2.0-only +// SPDX-FileCopyrightText: 2012 NVIDIA CORPORATION #include "../cbootimage.h" #include "../parse.h" @@ -626,7 +610,7 @@ t30_set_sdram_param(build_image_context *context, return 0; } -int +static int t30_getbl_param(u_int32_t set, parse_token id, u_int32_t *data, @@ -661,7 +645,7 @@ t30_getbl_param(u_int32_t set, return 0; } -int +static int t30_setbl_param(u_int32_t set, parse_token id, u_int32_t *data, @@ -696,7 +680,7 @@ t30_setbl_param(u_int32_t set, return 0; } -int +static int t30_bct_get_value(parse_token id, u_int32_t *data, u_int8_t *bct) { nvboot_config_table *bct_ptr = (nvboot_config_table *)bct; @@ -775,7 +759,7 @@ t30_bct_get_value(parse_token id, u_int32_t *data, u_int8_t *bct) return 0; } -int +static int t30_bct_set_value(parse_token id, u_int32_t data, u_int8_t *bct) { nvboot_config_table *bct_ptr = (nvboot_config_table *)bct; @@ -803,7 +787,7 @@ t30_bct_set_value(parse_token id, u_int32_t data, u_int8_t *bct) return 0; } -int +static int t30_bct_set_data(parse_token id, u_int8_t *data, u_int32_t length, @@ -825,7 +809,7 @@ t30_bct_set_data(parse_token id, return 0; } -void t30_init_bad_block_table(build_image_context *context) +static void t30_init_bad_block_table(build_image_context *context) { u_int32_t bytes_per_entry; nvboot_badblock_table *table; |