Skip to content

Commit

Permalink
Support atsame51n19 chip (for Duet3HC) (#6721) (#413)
Browse files Browse the repository at this point in the history
* Kconfig: Remove references to manufacturers in Kconfig

Avoid referring to particular board manufacturers in "make
menuconfig".  This information becomes rapidly outdated and is
sometimes viewed by competing manufacturers as being unfair.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>

* atsamd: Add Kconfig definition for SAME51N19 chip

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>

---------

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Co-authored-by: Kevin O'Connor <kevin@koconnor.net>
  • Loading branch information
rogerlz and KevinOConnor authored Oct 29, 2024
1 parent 712a94d commit 863b428
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ choice
config MACH_AVR
bool "Atmega AVR"
config MACH_ATSAM
bool "SAM3/SAM4/SAM E70 (Due and Duet)"
bool "SAM3/SAM4/SAM E70"
config MACH_ATSAMD
bool "SAMC21/SAMD21/SAMD51/SAME5x"
config MACH_LPC176X
bool "LPC176x (Smoothieboard)"
bool "LPC176x"
config MACH_STM32
bool "STMicroelectronics STM32"
config MACH_HC32F460
Expand Down
10 changes: 5 additions & 5 deletions src/atsam/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ config BOARD_DIRECTORY
choice
prompt "Processor model"
config MACH_SAM3X8E
bool "SAM3x8e (Arduino Due)"
bool "SAM3x8e"
select MACH_SAM3X
config MACH_SAM3X8C
bool "SAM3x8c (Printrboard G2)"
bool "SAM3x8c"
select MACH_SAM3X
config MACH_SAM4S8C
bool "SAM4s8c (Duet Maestro)"
bool "SAM4s8c"
select MACH_SAM4S
config MACH_SAM4E8E
bool "SAM4e8e (Duet Wifi/Eth)"
bool "SAM4e8e"
select MACH_SAM4E
config MACH_SAME70Q20B
bool "SAME70Q20B (Duet 3 6HC)"
bool "SAME70Q20B"
select MACH_SAME70
endchoice

Expand Down
26 changes: 15 additions & 11 deletions src/atsamd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,38 @@ config BOARD_DIRECTORY
choice
prompt "Processor model"
config MACH_SAMC21G18
bool "SAMC21G18 (Duet 3 Toolboard 1LC)"
bool "SAMC21G18"
select MACH_SAMC21
config MACH_SAMD21G18
bool "SAMD21G18 (Arduino Zero)"
bool "SAMD21G18"
select MACH_SAMD21
config MACH_SAMD21E18
bool "SAMD21E18 (Adafruit Trinket M0)"
bool "SAMD21E18"
select MACH_SAMD21
config MACH_SAMD21J18
bool "SAMD21J18 (ReprapWorld Minitronics v2)"
bool "SAMD21J18"
select MACH_SAMD21
config MACH_SAMD21E15
bool "SAMD21E15"
select MACH_SAMD21
config MACH_SAMD51G19
bool "SAMD51G19 (Adafruit ItsyBitsy M4)"
bool "SAMD51G19"
select MACH_SAMD51
config MACH_SAMD51J19
bool "SAMD51J19 (Adafruit Metro M4)"
bool "SAMD51J19"
select MACH_SAMD51
config MACH_SAMD51N19
bool "SAMD51N19"
select MACH_SAMD51
config MACH_SAMD51P20
bool "SAMD51P20 (Adafruit Grand Central)"
bool "SAMD51P20"
select MACH_SAMD51
config MACH_SAME51J19
bool "SAME51J19"
select MACH_SAME51
config MACH_SAME51N19
bool "SAME51N19"
select MACH_SAME51
config MACH_SAME54P20
bool "SAME54P20"
select MACH_SAME54
Expand Down Expand Up @@ -100,13 +103,14 @@ config MCU
default "samd51n19a" if MACH_SAMD51N19
default "samd51p20a" if MACH_SAMD51P20
default "same51j19a" if MACH_SAME51J19
default "same51n19a" if MACH_SAME51N19
default "same54p20a" if MACH_SAME54P20

config FLASH_SIZE
hex
default 0x8000 if MACH_SAMD21E15
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 || MACH_SAME51N19
default 0x100000 if MACH_SAMD51P20 || MACH_SAME54P20

config FLASH_BOOT_ADDRESS
Expand All @@ -121,7 +125,7 @@ config RAM_SIZE
hex
default 0x1000 if MACH_SAMD21E15
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 || MACH_SAME51N19
default 0x40000 if MACH_SAMD51P20 || MACH_SAME54P20

config STACK_SIZE
Expand All @@ -137,9 +141,9 @@ choice
prompt "Bootloader offset"
config SAMD_FLASH_START_2000
depends on MACH_SAMD21
bool "8KiB bootloader (Arduino Zero)"
bool "8KiB bootloader"
config SAMD_FLASH_START_4000
bool "16KiB bootloader (Arduino M0, Duet 3 Bootloader)"
bool "16KiB bootloader"
config SAMD_FLASH_START_0000
bool "No bootloader"
endchoice
Expand Down
2 changes: 1 addition & 1 deletion src/lpc176x/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ config STACK_SIZE
choice
prompt "Bootloader offset"
config LPC_FLASH_START_4000
bool "16KiB bootloader (Smoothieware bootloader)"
bool "16KiB bootloader"
config LPC_FLASH_START_0000
bool "No bootloader"
endchoice
Expand Down

0 comments on commit 863b428

Please sign in to comment.