mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-04 04:51:57 +00:00
This commit adds the `devicetree.h` header inclusion in the Atmel SAM0- family SoC header files, as required by the ARM SoC conventions. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
50 lines
1.3 KiB
C
50 lines
1.3 KiB
C
/*
|
|
* Copyright (c) 2019 ML!PA Consulting GmbH
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef _ATMEL_SAME53_SOC_H_
|
|
#define _ATMEL_SAME53_SOC_H_
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
|
|
#define DONT_USE_CMSIS_INIT
|
|
|
|
#include <zephyr/types.h>
|
|
|
|
/* Add include for DTS generated information */
|
|
#include <devicetree.h>
|
|
|
|
#if defined(CONFIG_SOC_PART_NUMBER_SAME53J18A)
|
|
#include <same53j18a.h>
|
|
#elif defined(CONFIG_SOC_PART_NUMBER_SAME53J19A)
|
|
#include <same53j19a.h>
|
|
#elif defined(CONFIG_SOC_PART_NUMBER_SAME53J20A)
|
|
#include <same53j20a.h>
|
|
#elif defined(CONFIG_SOC_PART_NUMBER_SAME53N19A)
|
|
#include <same53n19a.h>
|
|
#elif defined(CONFIG_SOC_PART_NUMBER_SAME53N20A)
|
|
#include <same53n20a.h>
|
|
#else
|
|
#error Library does not support the specified device.
|
|
#endif
|
|
|
|
#endif /* _ASMLANGUAGE */
|
|
|
|
#include "sercom_fixup_samd5x.h"
|
|
#include "tc_fixup_samd5x.h"
|
|
#include "gmac_fixup_samd5x.h"
|
|
#include "../common/atmel_sam0_dt.h"
|
|
|
|
#define SOC_ATMEL_SAM0_OSC32K_FREQ_HZ 32768
|
|
|
|
/** Processor Clock (HCLK) Frequency */
|
|
#define SOC_ATMEL_SAM0_HCLK_FREQ_HZ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC
|
|
/** Master Clock (MCK) Frequency */
|
|
#define SOC_ATMEL_SAM0_MCK_FREQ_HZ SOC_ATMEL_SAM0_HCLK_FREQ_HZ
|
|
#define SOC_ATMEL_SAM0_GCLK0_FREQ_HZ SOC_ATMEL_SAM0_MCK_FREQ_HZ
|
|
#define SOC_ATMEL_SAM0_GCLK2_FREQ_HZ 48000000
|
|
|
|
#endif /* _ATMEL_SAME53_SOC_H_ */
|