drivers: clock_control: Fix npcx leakage

Fixes an issue with Kconfig for this leaking into all devices where
it should not be

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2024-03-07 08:08:17 +00:00 committed by Anas Nashif
parent b680a6ec72
commit cba1e34ef0

View file

@ -10,9 +10,10 @@ config CLOCK_CONTROL_NPCX
help
Enable support for NPCX clock controller driver.
if CLOCK_CONTROL_NPCX
config CLOCK_CONTROL_NPCX_EXTERNAL_SRC
bool "Generate LFCLK by on-chip Crystal Oscillator"
depends on CLOCK_CONTROL_NPCX
help
When this option is enabled, the internal 32.768 KHz clock (LFCLK)
is generated by the on-chip Crystal Oscillator (XTOSC).
@ -30,3 +31,5 @@ config CLOCK_CONTROL_NPCX_SUPP_FIU1
default y if SOC_SERIES_NPCX4
help
Selected if NPCX series supports FIU1 bus.
endif # CLOCK_CONTROL_NPCX