]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-imx: move snvs module
authorIan Ray <ian.ray@gehealthcare.com>
Fri, 8 Nov 2024 14:03:54 +0000 (16:03 +0200)
committerFabio Estevam <festevam@gmail.com>
Sat, 9 Nov 2024 11:55:04 +0000 (08:55 -0300)
Commit 723f8359c1 ("imx: mx7: snvs: Add an SNVS init routine") noted
that the init_snvs() call likely applies to other i.MX processors, and
this has been found to be true for i.MX8MP.

Move snvs module for future re-use.

Signed-off-by: Ian Ray <ian.ray@gehealthcare.com>
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/mx7/Makefile
arch/arm/mach-imx/snvs.c [moved from arch/arm/mach-imx/mx7/snvs.c with 100% similarity]
arch/arm/mach-imx/snvs.h [new file with mode: 0644]

index 21d955b4aef1f4a6238c7ead05d5940ffbf82117..0de207c068180d5e30fd64266b4032cf84b8885f 100644 (file)
@@ -293,3 +293,5 @@ obj-$(CONFIG_ARCH_IMXRT) += imxrt/
 
 obj-$(CONFIG_SPL_BOOTROM_SUPPORT) += spl_imx_romapi.o
 obj-$(CONFIG_IMX8_ROMAPI) += romapi.o
+
+obj-$(CONFIG_MX7) += snvs.o
index f1436e2d0d7f7030e625ed73aba15ce62af0d0ec..fec228a616a11bd1f5dcf8340fd5cfd8a3bc2e3a 100644 (file)
@@ -3,5 +3,5 @@
 # (C) Copyright 2015 Freescale Semiconductor, Inc.
 #
 
-obj-y  := soc.o clock.o clock_slice.o ddr.o snvs.o
+obj-y  := soc.o clock.o clock_slice.o ddr.o
 obj-$(CONFIG_ARMV7_PSCI)  += psci-mx7.o psci-suspend.o
diff --git a/arch/arm/mach-imx/snvs.h b/arch/arm/mach-imx/snvs.h
new file mode 100644 (file)
index 0000000..4ce9781
--- /dev/null
@@ -0,0 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2018 Linaro
+ */
+
+void init_snvs(void);