diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-10-21 21:50:21 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-11-08 09:53:04 -0500 |
commit | 6485ff800b56dbb4578afde88e7d22f6b0a25dc8 (patch) | |
tree | c68e762a9abd6af3af31292bf4ccedc30e95e9c9 /src/rp2040/Kconfig | |
parent | 42e9adcfc9963b54c71e8851e1a6a41a001531e5 (diff) | |
download | kutter-6485ff800b56dbb4578afde88e7d22f6b0a25dc8.tar.gz kutter-6485ff800b56dbb4578afde88e7d22f6b0a25dc8.tar.xz kutter-6485ff800b56dbb4578afde88e7d22f6b0a25dc8.zip |
rp2040: Support CanBoot as bootloader
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
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 148222d7..69b1cd58 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 |