rp2040: Support CanBoot as bootloader

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2022-10-21 21:50:21 -04:00
parent 42e9adcfc9
commit 6485ff800b
3 changed files with 41 additions and 14 deletions

View File

@@ -47,17 +47,32 @@ config STACK_SIZE
int
default 512
config FLASH_START
hex
default 0x10000100
######################################################################
# Bootloader options
######################################################################
config RP2040_HAVE_STAGE2
bool
config RP2040_HAVE_BOOTLOADER
bool
default y if !RP2040_HAVE_STAGE2
choice
prompt "Flash chip" if LOW_LEVEL_OPTIONS
prompt "Bootloader offset"
config RP2040_FLASH_START_0100
bool "No bootloader"
select RP2040_HAVE_STAGE2
config RP2040_FLASH_START_4000
bool "16KiB bootloader"
endchoice
config FLASH_START
hex
default 0x10004000 if RP2040_FLASH_START_4000
default 0x10000100
choice
prompt "Flash chip" if LOW_LEVEL_OPTIONS && RP2040_HAVE_STAGE2
config RP2040_FLASH_W25Q080
bool "W25Q080 with CLKDIV 2"
config RP2040_FLASH_GENERIC_03