1 /* 2 * Copyright (c) 2013-2015 Wind River Systems, Inc. 3 * Copyright (c) 2016 Intel Corporation. 4 * Copyright (c) 2018 Vincent van der Locht 5 * Copyright (c) 2017 Justin Watson 6 * Copyright (c) 2019-2024 Gerson Fernando Budke <nandojve@gmail.com> 7 * 8 * SPDX-License-Identifier: Apache-2.0 9 */ 10 11 /** 12 * @file SoC configuration macros for the Atmel SAM4E family processors. 13 */ 14 15 #ifndef _SOC_ATMEL_SAM_SAM4E_SOC_H_ 16 #define _SOC_ATMEL_SAM_SAM4E_SOC_H_ 17 18 #include <zephyr/sys/util.h> 19 20 #ifndef _ASMLANGUAGE 21 22 #define DONT_USE_CMSIS_INIT 23 #define DONT_USE_PREDEFINED_CORE_HANDLERS 24 #define DONT_USE_PREDEFINED_PERIPHERALS_HANDLERS 25 26 #if defined(CONFIG_SOC_SAM4E16E) 27 #include <sam4e16e.h> 28 #elif defined(CONFIG_SOC_SAM4E16C) 29 #include <sam4e16c.h> 30 #elif defined(CONFIG_SOC_SAM4E8E) 31 #include <sam4e8e.h> 32 #elif defined(CONFIG_SOC_SAM4E8C) 33 #include <sam4e8c.h> 34 #else 35 #error Library does not support the specified device. 36 #endif 37 38 #include "../common/soc_pmc.h" 39 #include "../common/soc_gpio.h" 40 #include "../common/soc_supc.h" 41 #include "../common/atmel_sam_dt.h" 42 43 /** Processor Clock (HCLK) Frequency */ 44 #define SOC_ATMEL_SAM_HCLK_FREQ_HZ ATMEL_SAM_DT_CPU_CLK_FREQ_HZ 45 46 /** Master Clock (MCK) Frequency */ 47 #define SOC_ATMEL_SAM_MCK_FREQ_HZ SOC_ATMEL_SAM_HCLK_FREQ_HZ 48 49 #endif /* !_ASMLANGUAGE */ 50 51 #endif /* _SOC_ATMEL_SAM_SAM4E_SOC_H_ */ 52