]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: tegra: expose crypto module for all Tegra SoCs
authorSvyatoslav Ryhel <clamor95@gmail.com>
Tue, 14 Feb 2023 17:35:35 +0000 (19:35 +0200)
committerTom <twarren@nvidia.com>
Thu, 23 Feb 2023 19:55:37 +0000 (12:55 -0700)
Move crypto module from T20 only into common Tegra dir.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Tom <twarren@nvidia.com>
arch/arm/mach-tegra/Kconfig
arch/arm/mach-tegra/Makefile
arch/arm/mach-tegra/crypto.c [moved from arch/arm/mach-tegra/tegra20/crypto.c with 100% similarity]
arch/arm/mach-tegra/crypto.h [moved from arch/arm/mach-tegra/tegra20/crypto.h with 100% similarity]
arch/arm/mach-tegra/tegra20/Kconfig
arch/arm/mach-tegra/tegra20/Makefile

index 4fc79ebadbfa796b21c58a04fb4fbdb6fed627fa..5b0cd92d9e67ef6e86254a1ffe836a7335441bcb 100644 (file)
@@ -15,6 +15,11 @@ config SPL_SERIAL
 config TEGRA_CLKRST
        bool
 
+config TEGRA_CRYPTO
+       bool "Tegra AES128 crypto module"
+       select AES
+       default n
+
 config TEGRA_GP_PADCTRL
        bool
 
index 7165d70a60da926be271ac2df8ec564f319c77f4..9147050b323340e3446fb25490676a177c12e5fe 100644 (file)
@@ -16,6 +16,7 @@ obj-$(CONFIG_TEGRA_GP_PADCTRL) += ap.o
 obj-y += board.o board2.o
 obj-y += cache.o
 obj-$(CONFIG_TEGRA_CLKRST) += clock.o
+obj-$(CONFIG_$(SPL_)TEGRA_CRYPTO) += crypto.o
 obj-$(CONFIG_TEGRA_PINCTRL) += pinmux-common.o
 obj-$(CONFIG_TEGRA_PMC) += powergate.o
 obj-y += xusb-padctl-dummy.o
index 955786c0c4841a4e1ea5c6a32c714bd0ecbd083f..57d11024bfc23e3d2369e67ed9072c0115d31e57 100644 (file)
@@ -3,6 +3,7 @@ if TEGRA20
 config TEGRA_LP0
        bool
        select TEGRA_CLOCK_SCALING
+       select TEGRA_CRYPTO
 
 config TEGRA_PMU
        bool
index bb17c90cca29539bf7bf7230bf5a76e1452d4f9e..67454ff5f4c5a3086f7d412cb664e1ec5fdd63f4 100644 (file)
@@ -13,6 +13,6 @@ CFLAGS_warmboot_avp.o = -march=armv4t -U__LINUX_ARM_ARCH__ \
 CFLAGS_REMOVE_warmboot_avp.o := $(LTO_CFLAGS)
 
 obj-y  += clock.o funcmux.o pinmux.o
-obj-$(CONFIG_TEGRA_LP0) += warmboot.o crypto.o warmboot_avp.o
+obj-$(CONFIG_TEGRA_LP0) += warmboot.o warmboot_avp.o
 obj-$(CONFIG_TEGRA_CLOCK_SCALING) += emc.o
 obj-$(CONFIG_TEGRA_PMU) += pmu.o