rtc: zynqmp: allow on Versal architectures
authorVincent Fazio <vfazio@xes-inc.com>
Tue, 14 Jan 2025 13:58:12 +0000 (07:58 -0600)
committerMichal Simek <michal.simek@amd.com>
Tue, 14 Jan 2025 14:34:51 +0000 (15:34 +0100)
Allow the ZyncMP RTC driver to be enabled on Versal architectures.

Also, require DM_RTC since the driver uses the RTC driver model.

Signed-off-by: Vincent Fazio <vfazio@xes-inc.com>
Link: https://lore.kernel.org/r/20250114135812.2605618-1-vfazio@xes-inc.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/rtc/Kconfig

index 9c2d139..6467f20 100644 (file)
@@ -294,7 +294,7 @@ config RTC_DAVINCI
 
 config RTC_ZYNQMP
        bool "Enable ZynqMP RTC driver"
-       depends on ARCH_ZYNQMP
+       depends on DM_RTC && (ARCH_ZYNQMP || ARCH_VERSAL || ARCH_VERSAL_NET || ARCH_VERSAL2)
        help
          Say "yes" here to support the on chip real time clock
          present on Xilinx ZynqMP SoC.