2016-09-28 03:01:54 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Piotr Mienkowski
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @file
|
|
|
|
* @brief Register access macros for the Atmel SAM E70 MCU.
|
|
|
|
*
|
|
|
|
* This file provides register access macros for the Atmel SAM E70 MCU, HAL
|
|
|
|
* drivers for core peripherals as well as symbols specific to Atmel SAM family.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ATMEL_SAME70_SOC_H_
|
|
|
|
#define _ATMEL_SAME70_SOC_H_
|
|
|
|
|
2017-05-19 05:32:40 +08:00
|
|
|
#ifndef _ASMLANGUAGE
|
|
|
|
|
2016-09-28 03:01:54 +08:00
|
|
|
#define DONT_USE_CMSIS_INIT
|
|
|
|
#define DONT_USE_PREDEFINED_CORE_HANDLERS
|
|
|
|
#define DONT_USE_PREDEFINED_PERIPHERALS_HANDLERS
|
|
|
|
|
|
|
|
#if defined CONFIG_SOC_PART_NUMBER_SAME70J19
|
2017-09-02 17:05:57 +08:00
|
|
|
#include <same70j19.h>
|
2016-09-28 03:01:54 +08:00
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70J20
|
2017-09-02 17:05:57 +08:00
|
|
|
#include <same70j20.h>
|
2016-09-28 03:01:54 +08:00
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70J21
|
2017-09-02 17:05:57 +08:00
|
|
|
#include <same70j21.h>
|
2016-09-28 03:01:54 +08:00
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70N19
|
2017-09-02 17:05:57 +08:00
|
|
|
#include <same70n19.h>
|
2016-09-28 03:01:54 +08:00
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70N20
|
2017-09-02 17:05:57 +08:00
|
|
|
#include <same70n20.h>
|
2016-09-28 03:01:54 +08:00
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70N21
|
2017-09-02 17:05:57 +08:00
|
|
|
#include <same70n21.h>
|
2016-09-28 03:01:54 +08:00
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70Q19
|
2017-09-02 17:05:57 +08:00
|
|
|
#include <same70q19.h>
|
2016-09-28 03:01:54 +08:00
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70Q20
|
2017-09-02 17:05:57 +08:00
|
|
|
#include <same70q20.h>
|
2016-09-28 03:01:54 +08:00
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70Q21
|
2017-09-02 17:05:57 +08:00
|
|
|
#include <same70q21.h>
|
2016-09-28 03:01:54 +08:00
|
|
|
#else
|
|
|
|
#error Library does not support the specified device.
|
|
|
|
#endif
|
|
|
|
|
2016-10-13 23:55:02 +08:00
|
|
|
#include "soc_pinmap.h"
|
|
|
|
|
2016-09-28 03:01:54 +08:00
|
|
|
#include "../common/soc_pmc.h"
|
|
|
|
#include "../common/soc_gpio.h"
|
|
|
|
|
2017-05-19 05:32:40 +08:00
|
|
|
#endif /* _ASMLANGUAGE */
|
|
|
|
|
2017-01-21 00:52:34 +08:00
|
|
|
/** Peripheral Hardware Request Line Identifier */
|
|
|
|
#define DMA_PERID_HSMCI_TX_RX 0
|
|
|
|
#define DMA_PERID_SPI0_TX 1
|
|
|
|
#define DMA_PERID_SPI0_RX 2
|
|
|
|
#define DMA_PERID_SPI1_TX 3
|
|
|
|
#define DMA_PERID_SPI1_RX 4
|
|
|
|
#define DMA_PERID_QSPI_TX 5
|
|
|
|
#define DMA_PERID_QSPI_RX 6
|
|
|
|
#define DMA_PERID_USART0_TX 7
|
|
|
|
#define DMA_PERID_USART0_RX 8
|
|
|
|
#define DMA_PERID_USART1_TX 9
|
|
|
|
#define DMA_PERID_USART1_RX 10
|
|
|
|
#define DMA_PERID_USART2_TX 11
|
|
|
|
#define DMA_PERID_USART2_RX 12
|
|
|
|
#define DMA_PERID_PWM0_TX 13
|
|
|
|
#define DMA_PERID_TWIHS0_TX 14
|
|
|
|
#define DMA_PERID_TWIHS0_RX 15
|
|
|
|
#define DMA_PERID_TWIHS1_TX 16
|
|
|
|
#define DMA_PERID_TWIHS1_RX 17
|
|
|
|
#define DMA_PERID_TWIHS2_TX 18
|
|
|
|
#define DMA_PERID_TWIHS2_RX 19
|
|
|
|
#define DMA_PERID_UART0_TX 20
|
|
|
|
#define DMA_PERID_UART0_RX 21
|
|
|
|
#define DMA_PERID_UART1_TX 22
|
|
|
|
#define DMA_PERID_UART1_RX 23
|
|
|
|
#define DMA_PERID_UART2_TX 24
|
|
|
|
#define DMA_PERID_UART2_RX 25
|
|
|
|
#define DMA_PERID_UART3_TX 26
|
|
|
|
#define DMA_PERID_UART3_RX 27
|
|
|
|
#define DMA_PERID_UART4_TX 28
|
|
|
|
#define DMA_PERID_UART4_RX 29
|
|
|
|
#define DMA_PERID_DACC_TX 30
|
|
|
|
#define DMA_PERID_SSC_TX 32
|
|
|
|
#define DMA_PERID_SSC_RX 33
|
|
|
|
#define DMA_PERID_PIOA_RX 34
|
|
|
|
#define DMA_PERID_AFEC0_RX 35
|
|
|
|
#define DMA_PERID_AFEC1_RX 36
|
|
|
|
#define DMA_PERID_AES_TX 37
|
|
|
|
#define DMA_PERID_AES_RX 38
|
|
|
|
#define DMA_PERID_PWM1_TX 39
|
|
|
|
#define DMA_PERID_TC0_RX 40
|
|
|
|
#define DMA_PERID_TC1_RX 41
|
|
|
|
#define DMA_PERID_TC2_RX 42
|
|
|
|
#define DMA_PERID_TC3_RX 43
|
|
|
|
|
2016-09-28 03:01:54 +08:00
|
|
|
/** Processor Clock (HCLK) Frequency */
|
|
|
|
#define SOC_ATMEL_SAM_HCLK_FREQ_HZ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC
|
|
|
|
/** Master Clock (MCK) Frequency */
|
|
|
|
#define SOC_ATMEL_SAM_MCK_FREQ_HZ \
|
|
|
|
(SOC_ATMEL_SAM_HCLK_FREQ_HZ / CONFIG_SOC_ATMEL_SAME70_MDIV)
|
|
|
|
|
|
|
|
#endif /* _ATMEL_SAME70_SOC_H_ */
|