aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-06-18 12:38:58 -0400
committerKevin O'Connor <kevin@koconnor.net>2022-06-20 13:03:58 -0400
commitd3c4ba4839dd7a4339ae024752e6c6424884c185 (patch)
treec619e9722a95fdd132015debee8f9f8690f10854 /src
parent9e52dc337fdae5f4cb98744f75cdcd61a1fa2c07 (diff)
downloadkutter-d3c4ba4839dd7a4339ae024752e6c6424884c185.tar.gz
kutter-d3c4ba4839dd7a4339ae024752e6c6424884c185.tar.xz
kutter-d3c4ba4839dd7a4339ae024752e6c6424884c185.zip
rp2040: Add a Kconfig option for selecting "generic_03H" flash type
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/rp2040/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rp2040/Kconfig b/src/rp2040/Kconfig
index 95db68bc..8bad20c9 100644
--- a/src/rp2040/Kconfig
+++ b/src/rp2040/Kconfig
@@ -52,12 +52,22 @@ config FLASH_START
# Bootloader options
######################################################################
+choice
+ prompt "Flash chip" if LOW_LEVEL_OPTIONS
+ config RP2040_FLASH_W25Q080
+ bool "W25Q080 with CLKDIV 2"
+ config RP2040_FLASH_GENERIC_03
+ bool "GENERIC_03H with CLKDIV 4"
+endchoice
+
config RP2040_STAGE2_FILE
string
+ default "boot2_generic_03h.S" if RP2040_FLASH_GENERIC_03
default "boot2_w25q080.S"
config RP2040_STAGE2_CLKDIV
int
+ default 4 if RP2040_FLASH_GENERIC_03
default 2