ARM: tegra: convert boards to use TEGRA_PRAM

Switch boards that use CFG_PRAM to TEGRA_PRAM.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
This commit is contained in:
Svyatoslav Ryhel
2025-04-15 11:55:28 +03:00
parent 94b395cc2d
commit 7187408553
9 changed files with 18 additions and 63 deletions

View File

@@ -7,10 +7,14 @@ config SYS_VENDOR
default "asus" default "asus"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "transformer-t114" default "tegra"
config TEGRA_BOARD_STRING config TEGRA_BOARD_STRING
string "Default Tegra board name" string "Default Tegra board name"
default "ASUS Transformer T114" default "ASUS Transformer T114"
config TEGRA_PRAM_SIZE
depends on TEGRA_PRAM
default 0x20000
endif endif

View File

@@ -7,10 +7,14 @@ config SYS_VENDOR
default "nvidia" default "nvidia"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "tegratab" default "tegra"
config TEGRA_BOARD_STRING config TEGRA_BOARD_STRING
string "Default Tegra board name" string "Default Tegra board name"
default "NVIDIA TegraTab" default "NVIDIA TegraTab"
config TEGRA_PRAM_SIZE
depends on TEGRA_PRAM
default 0x21c00
endif endif

View File

@@ -7,10 +7,14 @@ config SYS_VENDOR
default "xiaomi" default "xiaomi"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "mocha" default "tegra"
config TEGRA_BOARD_STRING config TEGRA_BOARD_STRING
string "Default Tegra board name" string "Default Tegra board name"
default "Xiaomi Mocha" default "Xiaomi Mocha"
config TEGRA_PRAM_SIZE
depends on TEGRA_PRAM
default 0x38400
endif endif

View File

@@ -36,7 +36,7 @@ To build U-Boot without SPL adjust tf701t_defconfig:
CONFIG_TEXT_BASE=0x80A00000 CONFIG_TEXT_BASE=0x80A00000
CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_SKIP_LOWLEVEL_INIT=y
# CONFIG_OF_BOARD_SETUP is not set # CONFIG_OF_BOARD_SETUP is not set
CONFIG_TEGRA_SUPPORT_NON_SECURE=y CONFIG_TEGRA_PRAM=y
After the build succeeds, you will obtain the final ``u-boot-dtb.bin`` file, After the build succeeds, you will obtain the final ``u-boot-dtb.bin`` file,
ready for booting with fastboot boot or which can be further processed into ready for booting with fastboot boot or which can be further processed into

View File

@@ -36,7 +36,7 @@ To build U-Boot without SPL adjust tegratab_defconfig:
CONFIG_TEXT_BASE=0x80A00000 CONFIG_TEXT_BASE=0x80A00000
CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_SKIP_LOWLEVEL_INIT=y
# CONFIG_OF_BOARD_SETUP is not set # CONFIG_OF_BOARD_SETUP is not set
CONFIG_TEGRA_SUPPORT_NON_SECURE=y CONFIG_TEGRA_PRAM=y
After the build succeeds, you will obtain the final ``u-boot-dtb.bin`` file, After the build succeeds, you will obtain the final ``u-boot-dtb.bin`` file,
ready for booting with fastboot boot or which can be further processed into ready for booting with fastboot boot or which can be further processed into

View File

@@ -105,7 +105,7 @@ To build U-Boot without SPL suitable for chainloading adjust mocha_defconfig:
CONFIG_TEXT_BASE=0x80A00000 CONFIG_TEXT_BASE=0x80A00000
CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_SKIP_LOWLEVEL_INIT=y
# CONFIG_OF_BOARD_SETUP is not set # CONFIG_OF_BOARD_SETUP is not set
CONFIG_TEGRA_SUPPORT_NON_SECURE=y CONFIG_TEGRA_PRAM=y
After the build succeeds, you will obtain the final ``u-boot-dtb.bin`` After the build succeeds, you will obtain the final ``u-boot-dtb.bin``
file, ready for booting using vendor bootloader's fastboot or which can be file, ready for booting using vendor bootloader's fastboot or which can be

View File

@@ -1,19 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2010-2013, NVIDIA CORPORATION. All rights reserved.
*
* Copyright (c) 2024, Svyatoslav Ryhel <clamor95@gmail.com>
*/
#ifndef __CONFIG_H
#define __CONFIG_H
#include "tegra124-common.h"
#ifdef CONFIG_TEGRA_SUPPORT_NON_SECURE
#define CFG_PRAM 0x38400 /* 225 MB */
#endif
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View File

@@ -1,19 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2010-2013, NVIDIA CORPORATION. All rights reserved.
*
* Copyright (c) 2023, Svyatoslav Ryhel <clamor95@gmail.com>
*/
#ifndef __CONFIG_H
#define __CONFIG_H
#include "tegra114-common.h"
#ifdef CONFIG_TEGRA_SUPPORT_NON_SECURE
#define CFG_PRAM 0x21c00 /* 135 MB */
#endif
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View File

@@ -1,19 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2010-2013, NVIDIA CORPORATION. All rights reserved.
*
* Copyright (c) 2023, Svyatoslav Ryhel <clamor95@gmail.com>
*/
#ifndef __CONFIG_H
#define __CONFIG_H
#include "tegra114-common.h"
#ifdef CONFIG_TEGRA_SUPPORT_NON_SECURE
#define CFG_PRAM 0x20000 /* 128 MB */
#endif
#include "tegra-common-post.h"
#endif /* __CONFIG_H */