1 /* 2 * Copyright (c) 2019 ML!PA Consulting GmbH 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef _ATMEL_SAME51_SOC_H_ 8 #define _ATMEL_SAME51_SOC_H_ 9 10 #ifndef _ASMLANGUAGE 11 12 #define DONT_USE_CMSIS_INIT 13 14 #include <zephyr/types.h> 15 16 17 #if defined(CONFIG_SOC_PART_NUMBER_SAME51J18A) 18 #include <same51j18a.h> 19 #elif defined(CONFIG_SOC_PART_NUMBER_SAME51J19A) 20 #include <same51j19a.h> 21 #elif defined(CONFIG_SOC_PART_NUMBER_SAME51J20A) 22 #include <same51j20a.h> 23 #elif defined(CONFIG_SOC_PART_NUMBER_SAME51N19A) 24 #include <same51n19a.h> 25 #elif defined(CONFIG_SOC_PART_NUMBER_SAME51N20A) 26 #include <same51n20a.h> 27 #else 28 #error Library does not support the specified device. 29 #endif 30 31 #endif /* _ASMLANGUAGE */ 32 33 #include "sercom_fixup_samd5x.h" 34 #include "tc_fixup_samd5x.h" 35 #include "adc_fixup_sam0.h" 36 #include "../common/soc_port.h" 37 #include "../common/atmel_sam0_dt.h" 38 39 #define SOC_ATMEL_SAM0_OSC32K_FREQ_HZ 32768 40 41 /** Processor Clock (HCLK) Frequency */ 42 #define SOC_ATMEL_SAM0_HCLK_FREQ_HZ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC 43 /** Master Clock (MCK) Frequency */ 44 #define SOC_ATMEL_SAM0_MCK_FREQ_HZ SOC_ATMEL_SAM0_HCLK_FREQ_HZ 45 #define SOC_ATMEL_SAM0_GCLK0_FREQ_HZ SOC_ATMEL_SAM0_MCK_FREQ_HZ 46 #define SOC_ATMEL_SAM0_GCLK2_FREQ_HZ 48000000 47 48 #endif /* _ATMEL_SAME51_SOC_H_ */ 49