1# Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
2# SPDX-License-Identifier: Apache-2.0
3
4config SOC_SERIES_ESP32S2
5	bool
6	select SOC_FAMILY_ESPRESSIF_ESP32
7	help
8	  ESP32-S2 Series
9
10config SOC_ESP32S2_R2
11	bool
12	select SOC_ESP32S2
13	help
14	  ESP32S2_R2
15
16config SOC_ESP32S2_FH2
17	bool
18	select SOC_ESP32S2
19	help
20	  ESP32S2_FH2
21
22config SOC_ESP32S2_FH4
23	bool
24	select SOC_ESP32S2
25	help
26	  ESP32S2_FH4
27
28config SOC_ESP32S2_FN4R2
29	bool
30	select SOC_ESP32S2
31	help
32	  ESP32S2_FN4R2
33
34# SiP with external flash / psram
35config SOC_ESP32S2_SOLO_N4
36	bool
37	select SOC_ESP32S2
38	help
39	  ESP32S2_SOLO_N4
40
41config SOC_ESP32S2_SOLO_N8
42	bool
43	select SOC_ESP32S2
44	help
45	  ESP32S2_SOLO_N8
46
47config SOC_ESP32S2_SOLO_N16
48	bool
49	select SOC_ESP32S2
50	help
51	  ESP32S2_SOLO_N16
52
53config SOC_ESP32S2_SOLO_N4R2
54	bool
55	select SOC_ESP32S2
56	help
57	  ESP32S2_SOLO_N4R2
58
59config SOC_ESP32S2_MINI_N4
60	bool
61	select SOC_ESP32S2
62	help
63	  ESP32S2_MINI_N4
64
65config SOC_ESP32S2_MINI_N4R2
66	bool
67	select SOC_ESP32S2
68	help
69	  ESP32S2_MINI_N4R2
70
71config SOC_ESP32S2_WROOM
72	bool
73	select SOC_ESP32S2
74	help
75	  ESP32S2_WROOM
76
77config SOC_ESP32S2_WROVER_N4R2
78	bool
79	select SOC_ESP32S2
80	help
81	  ESP32S2_WROVER_N4R2
82
83config SOC_ESP32S2_WROVER_N8R2
84	bool
85	select SOC_ESP32S2
86	help
87	  ESP32S2_WROVER_N8R2
88
89config SOC_ESP32S2_WROVER_N16R2
90	bool
91	select SOC_ESP32S2
92	help
93	  ESP32S2_WROVER_N16R2
94
95config SOC_ESP32S2
96	bool
97	select SOC_SERIES_ESP32S2
98	help
99	  ESP32S2
100
101config SOC_SERIES
102	default "esp32s2" if SOC_SERIES_ESP32S2
103
104config SOC
105	default "esp32s2" if SOC_SERIES_ESP32S2
106
107config SOC_PART_NUMBER
108	default "ESP32S2" if SOC_ESP32S2
109	default "ESP32S2_R2" if SOC_ESP32S2_R2
110	default "ESP32S2_FH2" if SOC_ESP32S2_FH2
111	default "ESP32S2_FH4" if SOC_ESP32S2_FH4
112	default "ESP32S2_FN4R2" if SOC_ESP32S2_FN4R2
113	default "ESP32S2_SOLO_N4" if SOC_ESP32S2_SOLO_N4
114	default "ESP32S2_SOLO_N8" if SOC_ESP32S2_SOLO_N8
115	default "ESP32S2_SOLO_N16" if SOC_ESP32S2_SOLO_N16
116	default "ESP32S2_SOLO_N4R2" if SOC_ESP32S2_SOLO_N4R2
117	default "ESP32S2_MINI_N4" if SOC_ESP32S2_MINI_N4
118	default "ESP32S2_MINI_N4R2" if SOC_ESP32S2_MINI_N4R2
119	default "ESP32S2_WROOM" if SOC_ESP32S2_WROOM
120	default "ESP32S2_WROVER_N4R2" if SOC_ESP32S2_WROVER_N4R2
121	default "ESP32S2_WROVER_N8R2" if SOC_ESP32S2_WROVER_N8R2
122	default "ESP32S2_WROVER_N16R2" if SOC_ESP32S2_WROVER_N16R2
123
124config SOC_TOOLCHAIN_NAME
125	string
126	default "espressif_esp32s2" if SOC_SERIES_ESP32S2
127