[PATCH] clk: T-Head: Disable on 32-bit Targets

From: Palmer Dabbelt
Date: Fri Jul 19 2024 - 11:10:57 EST


From: Palmer Dabbelt <palmer@xxxxxxxxxxxx>

This fails to build on 32-bit targets because of a missing __udivdi3.
IIRC the right way to fix that is to avoid the division, but I just want
a tree that builds and the only real T-Head platforms are 64-bit right
now.

Signed-off-by: Palmer Dabbelt <palmer@xxxxxxxxxxxx>
---
drivers/clk/thead/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/clk/thead/Kconfig b/drivers/clk/thead/Kconfig
index 1710d50bf9d4..95e0d9eb965e 100644
--- a/drivers/clk/thead/Kconfig
+++ b/drivers/clk/thead/Kconfig
@@ -3,6 +3,7 @@
config CLK_THEAD_TH1520_AP
bool "T-HEAD TH1520 AP clock support"
depends on ARCH_THEAD || COMPILE_TEST
+ depends on 64BIT
default ARCH_THEAD
select REGMAP_MMIO
help
--
2.45.2