2019-01-13 04:14:50 +03:00
|
|
|
# Kconfig settings for Atmel SAM processors
|
2016-06-14 21:27:30 +03:00
|
|
|
|
2019-01-13 04:14:50 +03:00
|
|
|
if MACH_ATSAM
|
2016-06-14 21:27:30 +03:00
|
|
|
|
2019-01-13 04:14:50 +03:00
|
|
|
config ATSAM_SELECT
|
2016-12-23 22:49:52 +03:00
|
|
|
bool
|
|
|
|
default y
|
2017-07-20 06:59:35 +03:00
|
|
|
select HAVE_GPIO
|
2016-12-23 22:49:52 +03:00
|
|
|
select HAVE_GPIO_ADC
|
2018-12-27 03:54:52 +03:00
|
|
|
select HAVE_GPIO_I2C
|
2018-05-04 19:47:26 +03:00
|
|
|
select HAVE_GPIO_SPI
|
2021-08-18 22:01:59 +03:00
|
|
|
select HAVE_GPIO_HARD_PWM if !MACH_SAME70
|
2018-08-27 18:09:47 +03:00
|
|
|
select HAVE_GPIO_BITBANGING
|
2020-05-25 07:27:18 +03:00
|
|
|
select HAVE_STRICT_TIMING
|
2019-11-26 03:30:02 +03:00
|
|
|
select HAVE_CHIPID
|
2021-10-29 00:10:10 +03:00
|
|
|
select HAVE_STEPPER_BOTH_EDGE
|
2016-12-23 22:49:52 +03:00
|
|
|
|
2016-06-14 21:27:30 +03:00
|
|
|
config BOARD_DIRECTORY
|
|
|
|
string
|
2019-01-13 04:14:50 +03:00
|
|
|
default "atsam"
|
2016-06-14 21:27:30 +03:00
|
|
|
|
2018-12-27 00:50:44 +03:00
|
|
|
choice
|
|
|
|
prompt "Processor model"
|
|
|
|
config MACH_SAM3X8E
|
|
|
|
bool "SAM3x8e (Arduino Due)"
|
2019-01-18 17:47:06 +03:00
|
|
|
select MACH_SAM3X
|
2019-01-18 18:07:57 +03:00
|
|
|
config MACH_SAM3X8C
|
|
|
|
bool "SAM3x8c (Printrboard G2)"
|
|
|
|
select MACH_SAM3X
|
2018-12-27 04:31:23 +03:00
|
|
|
config MACH_SAM4S8C
|
|
|
|
bool "SAM4s8c (Duet Maestro)"
|
2019-01-18 17:47:06 +03:00
|
|
|
select MACH_SAM4S
|
2018-12-27 00:50:44 +03:00
|
|
|
config MACH_SAM4E8E
|
|
|
|
bool "SAM4e8e (Duet Wifi/Eth)"
|
2019-01-18 17:47:06 +03:00
|
|
|
select MACH_SAM4E
|
2021-08-18 22:01:59 +03:00
|
|
|
config MACH_SAME70Q20B
|
|
|
|
bool "SAME70Q20B (Duet 3 6HC)"
|
|
|
|
select MACH_SAME70
|
2018-12-27 00:50:44 +03:00
|
|
|
endchoice
|
|
|
|
|
2019-01-18 17:47:06 +03:00
|
|
|
config MACH_SAM3X
|
|
|
|
bool
|
|
|
|
config MACH_SAM4
|
|
|
|
bool
|
|
|
|
config MACH_SAM4S
|
|
|
|
bool
|
|
|
|
select MACH_SAM4
|
|
|
|
config MACH_SAM4E
|
|
|
|
bool
|
|
|
|
select MACH_SAM4
|
2021-08-18 22:01:59 +03:00
|
|
|
config MACH_SAME70
|
|
|
|
bool
|
2019-01-18 17:47:06 +03:00
|
|
|
|
2018-12-27 00:50:44 +03:00
|
|
|
config MCU
|
|
|
|
string
|
|
|
|
default "sam3x8e" if MACH_SAM3X8E
|
2019-01-18 18:07:57 +03:00
|
|
|
default "sam3x8c" if MACH_SAM3X8C
|
2018-12-27 04:31:23 +03:00
|
|
|
default "sam4s8c" if MACH_SAM4S8C
|
2018-12-27 00:50:44 +03:00
|
|
|
default "sam4e8e" if MACH_SAM4E8E
|
2021-08-18 22:01:59 +03:00
|
|
|
default "same70q20b" if MACH_SAME70Q20B
|
2018-12-27 00:50:44 +03:00
|
|
|
|
2016-06-14 21:27:30 +03:00
|
|
|
config CLOCK_FREQ
|
|
|
|
int
|
2019-02-01 06:23:56 +03:00
|
|
|
default 84000000 if MACH_SAM3X
|
|
|
|
default 120000000 if MACH_SAM4
|
2021-08-18 22:01:59 +03:00
|
|
|
default 300000000 if MACH_SAME70
|
2016-06-14 21:27:30 +03:00
|
|
|
|
2019-08-22 02:29:17 +03:00
|
|
|
config FLASH_START
|
|
|
|
hex
|
2021-08-18 22:01:59 +03:00
|
|
|
default 0x400000 if MACH_SAM4 || MACH_SAME70
|
2019-08-22 02:29:17 +03:00
|
|
|
default 0x80000
|
|
|
|
|
|
|
|
config FLASH_SIZE
|
|
|
|
hex
|
|
|
|
default 0x80000
|
|
|
|
|
2022-11-03 19:41:28 +03:00
|
|
|
config FLASH_BOOT_ADDRESS
|
|
|
|
hex
|
|
|
|
default 0x0
|
|
|
|
|
2019-08-22 02:29:17 +03:00
|
|
|
config RAM_START
|
|
|
|
hex
|
2021-08-18 22:01:59 +03:00
|
|
|
default 0x20400000 if MACH_SAME70
|
2019-08-22 02:29:17 +03:00
|
|
|
default 0x20000000
|
|
|
|
|
|
|
|
config RAM_SIZE
|
|
|
|
hex
|
|
|
|
default 0x18000 if MACH_SAM3X
|
|
|
|
default 0x20000 if MACH_SAM4
|
2021-08-18 22:01:59 +03:00
|
|
|
default 0x40000 if MACH_SAME70
|
2019-08-22 02:29:17 +03:00
|
|
|
|
|
|
|
config STACK_SIZE
|
|
|
|
int
|
|
|
|
default 512
|
|
|
|
|
2021-03-18 21:22:57 +03:00
|
|
|
choice
|
|
|
|
prompt "Communication interface"
|
|
|
|
config ATSAM_USB
|
|
|
|
bool "USB"
|
|
|
|
select USBSERIAL
|
|
|
|
config ATSAM_SERIAL
|
|
|
|
bool "Serial"
|
|
|
|
select SERIAL
|
|
|
|
endchoice
|
2016-06-14 21:27:30 +03:00
|
|
|
|
|
|
|
endif
|