1# Microchip MEC172x MCU core series
2
3# Copyright (c) 2021 Microchip Technology Inc.
4# SPDX-License-Identifier: Apache-2.0
5
6choice
7	prompt "MEC172x Selection"
8	depends on SOC_SERIES_MEC172X
9
10config SOC_MEC172X_NSZ
11	bool "MEC172X_NSZ"
12config SOC_MEC172X_NLJ
13	bool "MEC172X_NLJ"
14
15endchoice
16
17config RTOS_TIMER
18	bool "MEC172x RTOS Timer(32KHz) as kernel timer"
19
20config SOC_MEC172X_PROC_CLK_DIV
21	int "PROC_CLK_DIV"
22	default 1
23	range 1 48
24	help
25	  This divisor defines a ratio between processor clock (HCLK)
26	  and main 96 MHz clock (MCK):
27	  HCLK = MCK / PROC_CLK_DIV
28	  Allowed divider values: 1, 3, 4, 16, and 48.
29
30choice
31	prompt "MEC172x debug interface general configuration"
32	default SOC_MEC172X_DEBUG_WITHOUT_TRACING
33	depends on SOC_SERIES_MEC172X
34	help
35	  Select Debug SoC interface support for MEC172X SoC family
36
37	config SOC_MEC172X_DEBUG_DISABLED
38		bool "Disable debug support"
39		help
40		  Debug port is disabled, JTAG/SWD cannot be enabled. JTAG_RST#
41		  pin is ignored. All other JTAG pins can be used as GPIOs
42		  or other non-JTAG alternate functions.
43
44	config SOC_MEC172X_DEBUG_WITHOUT_TRACING
45		bool "Debug support via Serial wire debug"
46		help
47		  JTAG port in SWD mode. I2C09 and ADC00-03 can be used.
48
49	config SOC_MEC172X_DEBUG_AND_TRACING
50		bool "Debug support via Serial wire debug with tracing enabled"
51		help
52		  JTAG port is enabled in SWD mode. Refer to tracing options
53		  to see if ADC00-03 can be used or not.
54endchoice
55
56choice
57	prompt "MEC172X debug interface trace configuration"
58	default SOC_MEC172X_DEBUG_AND_ETM_TRACING
59	depends on SOC_MEC172X_DEBUG_AND_TRACING
60	help
61	  Select tracing mode for debug interface
62
63	config SOC_MEC172X_DEBUG_AND_ETM_TRACING
64		bool "Debug support via Serial wire debug"
65		help
66		  JTAG port in SWD mode and ETM as tracing method.
67		  I2C09 can be used, but ADC00-03 cannot.
68
69	config SOC_MEC172X_DEBUG_AND_SWV_TRACING
70		bool "debug support via Serial Wire Debug and Viewer"
71		help
72		  JTAG port in SWD mode and SWV as tracing method.
73		  I2C09 cannot be used. ADC00-03 can be used.
74endchoice
75
76# GPIO initialization depends on ECIA initialization, which happen at
77# CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, so GPIO_INIT_PRIORITY needs to be
78# higher than that.
79if GPIO
80
81config GPIO_INIT_PRIORITY
82	default 41
83
84endif # GPIO
85