arch: Moved Atmel SAM3 into the SAM SoC family tree.
Moved the Atmel SAM 3 from its own directory into the directory tree laid out in arch/arm/soc/atmel_sam. Origin: Original Jira: ZEP-2067 Change-Id: I26a1a521dd7caa607c3e95a06cd574ee68ca59b8 Signed-off-by: Justin Watson <jwatson5@gmail.com>
This commit is contained in:
parent
e87564bd88
commit
94b44f03e1
13 changed files with 71 additions and 33 deletions
107
arch/arm/soc/atmel_sam/sam3/Kconfig.defconfig.series
Normal file
107
arch/arm/soc/atmel_sam/sam3/Kconfig.defconfig.series
Normal file
|
@ -0,0 +1,107 @@
|
|||
# Kconfig - Atmel SAM3 MCU series configuration options
|
||||
#
|
||||
# Copyright (c) 2017 Justin Watson
|
||||
# Copyright (c) 2016 Intel Corporation.
|
||||
# Copyright (c) 2014-2015 Wind River Systems, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
if SOC_SERIES_SAM3 || SOC_ATMEL_SAM3X8E
|
||||
|
||||
config SOC_SERIES
|
||||
string
|
||||
default sam3
|
||||
|
||||
config SOC_PART_NUMBER
|
||||
string
|
||||
default sam3x8e if SOC_PART_NUMBER_SAM3X8E || SOC_ATMEL_SAM3X8E
|
||||
|
||||
config NUM_IRQ_PRIO_BITS
|
||||
int
|
||||
default 3
|
||||
|
||||
#
|
||||
# SAM3 family has total 45 peripherals capable of
|
||||
# generating interrupts.
|
||||
#
|
||||
config NUM_IRQS
|
||||
int
|
||||
default 45
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
int
|
||||
default 84000000
|
||||
|
||||
#
|
||||
# SRAM address depends on the processor.
|
||||
#
|
||||
# SAM3X8E has two SRAM banks:
|
||||
# 64K @ 0x20000000
|
||||
# 32K @ 0x20080000
|
||||
# The first 64K is mirrored at 0x20070000
|
||||
# to provide one continuous 96K block.
|
||||
#
|
||||
config SRAM_SIZE
|
||||
default 96 if SOC_PART_NUMBER_SAM3X8E || SOC_ATMEL_SAM3X8E
|
||||
|
||||
config SRAM_BASE_ADDRESS
|
||||
default 0x20000000 if !SOC_PART_NUMBER_SAM3X8E && !SOC_ATMEL_SAM3X8E
|
||||
default 0x20070000 if SOC_PART_NUMBER_SAM3X8E || SOC_ATMEL_SAM3X8E
|
||||
|
||||
#
|
||||
# Atmel SAM3 family has flash starting @ 0x00080000.
|
||||
#
|
||||
config FLASH_SIZE
|
||||
default 512 if SOC_PART_NUMBER_SAM3X8E || SOC_ATMEL_SAM3X8E
|
||||
|
||||
config FLASH_BASE_ADDRESS
|
||||
default 0x00080000
|
||||
|
||||
if UART_ATMEL_SAM3
|
||||
|
||||
config UART_ATMEL_SAM3_BAUD_RATE
|
||||
default 115200
|
||||
|
||||
config UART_ATMEL_SAM3_CLK_FREQ
|
||||
default 84000000
|
||||
|
||||
endif # UART_ATMEL_SAM3
|
||||
|
||||
if GPIO
|
||||
|
||||
config GPIO_ATMEL_SAM3
|
||||
def_bool y
|
||||
|
||||
config GPIO_ATMEL_SAM3_PORTA
|
||||
default y
|
||||
|
||||
config GPIO_ATMEL_SAM3_PORTB
|
||||
default y
|
||||
|
||||
config GPIO_ATMEL_SAM3_PORTC
|
||||
default y
|
||||
|
||||
config GPIO_ATMEL_SAM3_PORTD
|
||||
default y
|
||||
|
||||
endif # GPIO
|
||||
|
||||
if I2C
|
||||
|
||||
config I2C_ATMEL_SAM3
|
||||
def_bool y
|
||||
|
||||
config I2C_0
|
||||
default y
|
||||
config I2C_0_IRQ_PRI
|
||||
default 0
|
||||
|
||||
config I2C_1
|
||||
default y
|
||||
|
||||
config I2C_1_IRQ_PRI
|
||||
default 0
|
||||
|
||||
endif # I2C
|
||||
|
||||
endif # SOC_SERIES_SAM3
|
Loading…
Add table
Add a link
Reference in a new issue