2024-04-12 08:04:08

by Wei Fu

[permalink] [raw]
Subject: [PATCH 4/5] Kconfig: Enable APM X-Gene RTC for XuanTie TH1520

From: Wei Fu <[email protected]>

This patch enables APM X-Gene RTC for XuanTie TH1520.

Signed-off-by: Wei Fu <[email protected]>
---
drivers/rtc/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 3a89f1e6095d..b219aeef4ce9 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -1880,7 +1880,7 @@ config RTC_DRV_MT7622
config RTC_DRV_XGENE
tristate "APM X-Gene RTC"
depends on HAS_IOMEM
- depends on ARCH_XGENE || COMPILE_TEST
+ depends on ARCH_XGENE || ARCH_THEAD || COMPILE_TEST
help
If you say yes here you get support for the APM X-Gene SoC real time
clock.
--
2.44.0



2024-04-12 09:49:37

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH 4/5] Kconfig: Enable APM X-Gene RTC for XuanTie TH1520

On Fri, Apr 12, 2024 at 04:01:46PM +0800, [email protected] wrote:
> From: Wei Fu <[email protected]>
>
> This patch enables APM X-Gene RTC for XuanTie TH1520.
>
> Signed-off-by: Wei Fu <[email protected]>
> ---
> drivers/rtc/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
> index 3a89f1e6095d..b219aeef4ce9 100644
> --- a/drivers/rtc/Kconfig
> +++ b/drivers/rtc/Kconfig
> @@ -1880,7 +1880,7 @@ config RTC_DRV_MT7622
> config RTC_DRV_XGENE
> tristate "APM X-Gene RTC"
> depends on HAS_IOMEM
> - depends on ARCH_XGENE || COMPILE_TEST
> + depends on ARCH_XGENE || ARCH_THEAD || COMPILE_TEST
> help
> If you say yes here you get support for the APM X-Gene SoC real time
> clock.

If I was configuring my system by reading menuconfig, I would have
absolutely no idea that this driver supports platforms other than the
X-Gene one. I think the Kconfig stuff for this likely needs an update to
convey that it's no longer just one SoC family that's supported here.


Attachments:
(No filename) (1.05 kB)
signature.asc (235.00 B)
Download all attachments