[PATCH v1 17/19] ARM: tegra: dt-setup: convert TrustZone remove into config

Thierry Reding thierry.reding at gmail.com
Wed Aug 23 13:17:37 CEST 2023

On Tue, Aug 22, 2023 at 02:22:15PM +0300, Svyatoslav Ryhel wrote:
> Remove of TrustZone nodes is required by many product devices
> which require repetable calls of same function from device board.
> To simplify this, TZ remove is converted into Kconfig option.
> Signed-off-by: Svyatoslav Ryhel <clamor95 at gmail.com>
> ---
>  arch/arm/mach-tegra/Kconfig    | 14 ++++++++++++++
>  arch/arm/mach-tegra/dt-setup.c |  7 +++++++
>  2 files changed, 21 insertions(+)

I kind of preferred the original because it's very explicit. There's
also no big advantage in consolidating this because the code is unlikely
to ever require changing (the libfdt API is quite stable and these nodes
are all hard-coded anyway). This new variant put non-generic code (it
requires a Kconfig option after all) into a generic place, so it seems a
bit backwards.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230823/ce94bbc2/attachment.sig>

More information about the U-Boot mailing list