firmware/br-ext-chip-allwinner/board/v83x/kernel/patches/00000-drivers_crypto_sunxi-...

55 lines
1.3 KiB
Diff

diff -drupN a/drivers/crypto/sunxi-ss/Makefile b/drivers/crypto/sunxi-ss/Makefile
--- a/drivers/crypto/sunxi-ss/Makefile 2018-08-06 17:23:04.000000000 +0300
+++ b/drivers/crypto/sunxi-ss/Makefile 2022-06-12 05:28:14.000000000 +0300
@@ -1,2 +1,49 @@
obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sun4i-ss.o
-sun4i-ss-y += sun4i-ss-core.o sun4i-ss-hash.o sun4i-ss-cipher.o
+sun4i-ss-y += sun4i/sun4i-ss-core.o sun4i/sun4i-ss-hash.o sun4i/sun4i-ss-cipher.o
+
+obj-$(CONFIG_CRYPTO_DEV_SUNXI) += ss.o
+
+ss-y += sunxi_ss.o sunxi_ss_proc_comm.o
+#ss-y += ss_kernel_test.o
+
+#ifdef CONFIG_ARCH_SUN8IW6
+# SUNXI_SS_VER = v2
+#endif
+ifdef CONFIG_ARCH_SUN8IW11
+ SUNXI_SS_VER = v3
+endif
+ifdef CONFIG_ARCH_SUN8IW12
+ SUNXI_SS_VER = v3
+endif
+ifdef CONFIG_ARCH_SUN8IW15
+ SUNXI_SS_VER = v3
+endif
+ifdef CONFIG_ARCH_SUN8IW17
+ SUNXI_SS_VER = v3
+endif
+ifdef CONFIG_ARCH_SUN8IW7
+ SUNXI_SS_VER = v3
+endif
+ifdef CONFIG_ARCH_SUN8IW18
+ SUNXI_SS_VER = v3
+endif
+ifdef CONFIG_ARCH_SUN50I
+ SUNXI_SS_VER = v3
+endif
+ifdef CONFIG_ARCH_SUN8IW16
+ SUNXI_SS_VER = v3
+endif
+ifdef CONFIG_ARCH_SUN8IW19
+ SUNXI_SS_VER = v3
+endif
+ifdef CONFIG_ARCH_SUN50IW8
+ SUNXI_SS_VER = v4
+endif
+ifdef CONFIG_ARCH_SUN50IW10
+ SUNXI_SS_VER = v4
+endif
+ss-y += $(SUNXI_SS_VER)/sunxi_ss_reg.o $(SUNXI_SS_VER)/sunxi_ss_proc.o
+
+ccflags-y += -Idrivers/crypto/sunxi-ss/$(SUNXI_SS_VER)
+
+#ccflags-y += -DDEBUG