diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2024-06-21 17:24:47 +0200 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2024-06-24 13:52:45 +0200 |
commit | 4f6a43ad2b05fd51e3294c67bb2e3da270324fbf (patch) | |
tree | aeda488c3c47ac836b9d7755d0c9405570ec2401 /drivers/reset | |
parent | fe125601d17cc1eacea47059a67bd5163d872ad2 (diff) |
reset: zynqmp: allow building under COMPILE_TEST
The ZynqMP reset driver can be compiled without ARCH_ZYNQMP being
enabled. Allow it to be built under COMPILE_TEST.
Acked-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20240621-reset-compile-zynqmp-v1-1-ede43ab18101@pengutronix.de
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset')
-rw-r--r-- | drivers/reset/Kconfig | 6 | ||||
-rw-r--r-- | drivers/reset/Makefile | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index 509f70e5c4c0..e59da17ea0b2 100644 --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig @@ -335,6 +335,12 @@ config RESET_ZYNQ help This enables the reset controller driver for Xilinx Zynq SoCs. +config RESET_ZYNQMP + bool "ZYNQMP Reset Driver" if COMPILE_TEST + default ARCH_ZYNQMP + help + This enables the reset controller driver for Xilinx ZynqMP SoCs. + source "drivers/reset/starfive/Kconfig" source "drivers/reset/sti/Kconfig" source "drivers/reset/hisilicon/Kconfig" diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile index 47a8148a92f3..1b814f08fed7 100644 --- a/drivers/reset/Makefile +++ b/drivers/reset/Makefile @@ -42,4 +42,4 @@ obj-$(CONFIG_RESET_TN48M_CPLD) += reset-tn48m.o obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o obj-$(CONFIG_RESET_UNIPHIER_GLUE) += reset-uniphier-glue.o obj-$(CONFIG_RESET_ZYNQ) += reset-zynq.o -obj-$(CONFIG_ARCH_ZYNQMP) += reset-zynqmp.o +obj-$(CONFIG_RESET_ZYNQMP) += reset-zynqmp.o |