atsamd: Add support for SAMD21J18 (Minitronics v2)

Adds a menu entry in menuconfig, allowing you to select the SAMD21J18 as mcu.

Signed-off-by: Bart Meijer <brupje@gmail.com>
This commit is contained in:
Bart Meijer 2023-06-16 16:59:59 +02:00 committed by KevinOConnor
parent a96608add4
commit 6d48adf9ef
1 changed files with 6 additions and 2 deletions

View File

@ -35,6 +35,9 @@ choice
config MACH_SAMD21E18 config MACH_SAMD21E18
bool "SAMD21E18 (Adafruit Trinket M0)" bool "SAMD21E18 (Adafruit Trinket M0)"
select MACH_SAMD21 select MACH_SAMD21
config MACH_SAMD21J18
bool "SAMD21J18 (ReprapWorld Minitronics v2)"
select MACH_SAMD21
config MACH_SAMD21E15 config MACH_SAMD21E15
bool "SAMD21E15" bool "SAMD21E15"
select MACH_SAMD21 select MACH_SAMD21
@ -90,6 +93,7 @@ config MCU
default "samc21g18a" if MACH_SAMC21G18 default "samc21g18a" if MACH_SAMC21G18
default "samd21g18a" if MACH_SAMD21G18 default "samd21g18a" if MACH_SAMD21G18
default "samd21e18a" if MACH_SAMD21E18 default "samd21e18a" if MACH_SAMD21E18
default "samd21j18a" if MACH_SAMD21J18
default "samd21e15a" if MACH_SAMD21E15 default "samd21e15a" if MACH_SAMD21E15
default "samd51g19a" if MACH_SAMD51G19 default "samd51g19a" if MACH_SAMD51G19
default "samd51j19a" if MACH_SAMD51J19 default "samd51j19a" if MACH_SAMD51J19
@ -101,7 +105,7 @@ config MCU
config FLASH_SIZE config FLASH_SIZE
hex hex
default 0x8000 if MACH_SAMD21E15 default 0x8000 if MACH_SAMD21E15
default 0x40000 if MACH_SAMC21G18 || MACH_SAMD21G18 || MACH_SAMD21E18 default 0x40000 if MACH_SAMC21G18 || MACH_SAMD21G18 || MACH_SAMD21E18 || MACH_SAMD21J18
default 0x80000 if MACH_SAMD51G19 || MACH_SAMD51J19 || MACH_SAMD51N19 || MACH_SAME51J19 default 0x80000 if MACH_SAMD51G19 || MACH_SAMD51J19 || MACH_SAMD51N19 || MACH_SAME51J19
default 0x100000 if MACH_SAMD51P20 || MACH_SAME54P20 default 0x100000 if MACH_SAMD51P20 || MACH_SAME54P20
@ -116,7 +120,7 @@ config RAM_START
config RAM_SIZE config RAM_SIZE
hex hex
default 0x1000 if MACH_SAMD21E15 default 0x1000 if MACH_SAMD21E15
default 0x8000 if MACH_SAMC21G18 || MACH_SAMD21G18 || MACH_SAMD21E18 default 0x8000 if MACH_SAMC21G18 || MACH_SAMD21G18 || MACH_SAMD21E18 || MACH_SAMD21J18
default 0x30000 if MACH_SAMD51G19 || MACH_SAMD51J19 || MACH_SAMD51N19 || MACH_SAME51J19 default 0x30000 if MACH_SAMD51G19 || MACH_SAMD51J19 || MACH_SAMD51N19 || MACH_SAME51J19
default 0x40000 if MACH_SAMD51P20 || MACH_SAME54P20 default 0x40000 if MACH_SAMD51P20 || MACH_SAME54P20