1# Copyright (c) 2019 ML!PA Consulting GmbH
2# SPDX-License-Identifier: Apache-2.0
3
4if SOC_SERIES_SAMD51 || SOC_SERIES_SAME51 || SOC_SERIES_SAME53 || SOC_SERIES_SAME54
5
6config SOC_ATMEL_SAMD5X_XOSC32K
7	bool "The external 32 kHz crystal oscillator"
8	help
9	  Say y to enable the external 32 kHZ crystal oscillator at
10	  startup.  This can then be selected as the main clock source
11	  for the SOC.
12
13config SOC_ATMEL_SAMD5X_XOSC32K_STARTUP
14	depends on SOC_ATMEL_SAMD5X_XOSC32K
15	hex "Startup time external 32 kHz crystal oscillator"
16	range 0x0 0x6
17	default 0x1
18	help
19	  Selects the startup time for the external 32 kHz crystal oscillator.
20
21choice
22	prompt "Main clock source"
23	default SOC_ATMEL_SAMD5X_DEFAULT_AS_MAIN
24	help
25	  Selects the clock that the main clocks, such as the CPU
26	  clock and AHB clock, will be derived from.
27
28config SOC_ATMEL_SAMD5X_DEFAULT_AS_MAIN
29	bool "DEFAULT"
30	help
31	  This choice will leave all clocks to their current state.
32	  This can be the default reset state or a state set by a bootloader.
33
34config SOC_ATMEL_SAMD5X_XOSC32K_AS_MAIN
35	depends on SOC_ATMEL_SAMD5X_XOSC32K
36	bool "XOSC32K"
37
38config SOC_ATMEL_SAMD5X_OSCULP32K_AS_MAIN
39	bool "OSCULP32K"
40
41endchoice
42
43endif
44