armcm_reset: Introduce Kconfig FLASH_BOOT_ADDRESS value

Specify the arm architecture flash bootup address for each chip type
in Kconfig using a new FLASH_BOOT_ADDRESS setting.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2022-11-03 12:41:28 -04:00
parent 11dd273b34
commit 42e9adcfc9
8 changed files with 26 additions and 6 deletions

View File

@@ -91,6 +91,10 @@ config FLASH_SIZE
default 0x80000 if MACH_SAMD51G19 || MACH_SAMD51J19 || MACH_SAMD51N19 || MACH_SAME51J19
default 0x100000 if MACH_SAMD51P20 || MACH_SAME54P20
config FLASH_BOOT_ADDRESS
hex
default 0x0
config RAM_START
hex
default 0x20000000

View File

@@ -5,7 +5,7 @@
// This file may be distributed under the terms of the GNU GPLv3 license.
#include <string.h> // memcpy
#include "autoconf.h" // CONFIG_FLASH_START
#include "autoconf.h" // CONFIG_MACH_SAMD21
#include "board/armcm_boot.h" // armcm_enable_irq
#include "board/io.h" // writeb
#include "board/usb_cdc.h" // usb_notify_ep0