diff options
Diffstat (limited to 'src/rp2040/Kconfig')
-rw-r--r-- | src/rp2040/Kconfig | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/src/rp2040/Kconfig b/src/rp2040/Kconfig index 148222d7e..69b1cd58e 100644 --- a/src/rp2040/Kconfig +++ b/src/rp2040/Kconfig @@ -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 "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 + prompt "Flash chip" if LOW_LEVEL_OPTIONS && RP2040_HAVE_STAGE2 config RP2040_FLASH_W25Q080 bool "W25Q080 with CLKDIV 2" config RP2040_FLASH_GENERIC_03 |