1# SPDX-License-Identifier: Apache-2.0
2#
3# Copyright (c) 2024 Realtek Semiconductor Corporation, SIBG-SD7
4#
5
6config SOC_SERIES_RTS5912
7	select ARM
8	select CPU_CORTEX_M33
9	select SYS_CLOCK_EXISTS
10	select DYNAMIC_INTERRUPTS
11	select SOC_EARLY_INIT_HOOK
12
13if SOC_SERIES_RTS5912
14
15config RTS5912_ON_ENTER_CPU_IDLE_HOOK
16	bool "CPU idle hook enable"
17	default y
18	imply ARM_ON_ENTER_CPU_IDLE_HOOK
19	help
20	  Enables a hook (z_arm_on_enter_cpu_idle()) that is called when
21	  the CPU is made idle (by k_cpu_idle() or k_cpu_atomic_idle()).
22	  If needed, this hook can be used to prevent the CPU from actually
23	  entering sleep by skipping the WFE/WFI instruction.
24
25config RTS5912_DEBUG_SWJ
26	bool "Serial wire JTAG"
27	default y
28	depends on DT_HAS_SWJ_CONNECTOR_ENABLED
29	help
30	  Enables the serial wire JTAG connection on the RTS5912 EC.
31
32endif # SOC_SERIES_RTS5912
33