[PATCH 3/3] clk: microchip: core: allow driver to be compiled with COMPILE_TEST

From: Brian Masney

Date: Sun Feb 22 2026 - 18:52:41 EST


This driver currently only supports builds against a PIC32 target. To
avoid future breakage in the future, let's update the Kconfig and the
driver so that it can be built with COMPILE_TEST enabled.

Signed-off-by: Brian Masney <bmasney@xxxxxxxxxx>
---
drivers/clk/microchip/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/microchip/Kconfig b/drivers/clk/microchip/Kconfig
index 0c03b14699bf083361bb5be8be3cf5305c311549..2864250dcaf8e720695c5a884a5aaf2efde15a1a 100644
--- a/drivers/clk/microchip/Kconfig
+++ b/drivers/clk/microchip/Kconfig
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0

config COMMON_CLK_PIC32
- def_bool COMMON_CLK && MACH_PIC32
+ def_bool COMMON_CLK && (MACH_PIC32 || COMPILE_TEST)

config MCHP_CLK_MPFS
bool "Clk driver for PolarFire SoC"

--
2.53.0