2019-03-26 00:44:32 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 ML!PA Consulting GmbH
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ATMEL_SAMD51_SOC_H_
|
|
|
|
#define _ATMEL_SAMD51_SOC_H_
|
|
|
|
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
|
|
|
|
|
|
#define DONT_USE_CMSIS_INIT
|
|
|
|
|
|
|
|
#include <zephyr/types.h>
|
|
|
|
|
2020-04-27 23:56:14 +08:00
|
|
|
|
2019-03-26 00:44:32 +08:00
|
|
|
#if defined(CONFIG_SOC_PART_NUMBER_SAMD51G18A)
|
|
|
|
#include <samd51g18a.h>
|
|
|
|
#elif defined(CONFIG_SOC_PART_NUMBER_SAMD51G19A)
|
|
|
|
#include <samd51g19a.h>
|
|
|
|
#elif defined(CONFIG_SOC_PART_NUMBER_SAMD51J18A)
|
|
|
|
#include <samd51j18a.h>
|
|
|
|
#elif defined(CONFIG_SOC_PART_NUMBER_SAMD51J19A)
|
|
|
|
#include <samd51j19a.h>
|
|
|
|
#elif defined(CONFIG_SOC_PART_NUMBER_SAMD51J20A)
|
|
|
|
#include <samd51j20a.h>
|
|
|
|
#elif defined(CONFIG_SOC_PART_NUMBER_SAMD51N19A)
|
|
|
|
#include <samd51n19a.h>
|
|
|
|
#elif defined(CONFIG_SOC_PART_NUMBER_SAMD51N20A)
|
|
|
|
#include <samd51n20a.h>
|
|
|
|
#elif defined(CONFIG_SOC_PART_NUMBER_SAMD51P19A)
|
|
|
|
#include <samd51p19a.h>
|
|
|
|
#elif defined(CONFIG_SOC_PART_NUMBER_SAMD51P20A)
|
|
|
|
#include <samd51p20a.h>
|
|
|
|
#else
|
|
|
|
#error Library does not support the specified device.
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _ASMLANGUAGE */
|
|
|
|
|
|
|
|
#include "sercom_fixup_samd5x.h"
|
|
|
|
#include "tc_fixup_samd5x.h"
|
2022-01-05 08:08:52 +08:00
|
|
|
#include "adc_fixup_sam0.h"
|
2021-05-18 08:48:09 +08:00
|
|
|
#include "../common/soc_port.h"
|
2020-04-22 04:18:51 +08:00
|
|
|
#include "../common/atmel_sam0_dt.h"
|
2019-03-26 00:44:32 +08:00
|
|
|
|
|
|
|
#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_SAMD51_SOC_H_ */
|