clk: sunxi: Limit legacy clocks to 32-bit ARM
authorSamuel Holland <samuel@sholland.org>
Sat, 2 Jul 2022 19:01:34 +0000 (14:01 -0500)
committerJernej Skrabec <jernej.skrabec@gmail.com>
Mon, 4 Jul 2022 19:59:19 +0000 (21:59 +0200)
The sunxi legacy clocks were never compatible with any 64-bit SoC,
so there is no point in building them as part of a 64-bit ARM kernel.
They make even less sense being built in to a 64-bit RISC-V kernel.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20220702190135.51744-1-samuel@sholland.org
drivers/clk/sunxi/Kconfig

index 3fba3d3ac9a28001efe7e864113ef72c1cee02c4..a5c2376103574c60139310c29a0655aa182e4855 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 menuconfig CLK_SUNXI
        bool "Legacy clock support for Allwinner SoCs"
-       depends on ARCH_SUNXI || COMPILE_TEST
+       depends on (ARM && ARCH_SUNXI) || COMPILE_TEST
        default y
 
 if CLK_SUNXI