aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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 /lib
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 'lib')
-rw-r--r--lib/rp2040/boot_stage2/boot2_generic_03h.S2
-rw-r--r--lib/rp2040/rp2040.patch13
2 files changed, 14 insertions, 1 deletions
diff --git a/lib/rp2040/boot_stage2/boot2_generic_03h.S b/lib/rp2040/boot_stage2/boot2_generic_03h.S
index a10e66ab..cc7e4fbc 100644
--- a/lib/rp2040/boot_stage2/boot2_generic_03h.S
+++ b/lib/rp2040/boot_stage2/boot2_generic_03h.S
@@ -16,7 +16,7 @@
// 4-byte checksum. Therefore code size cannot exceed 252 bytes.
// ----------------------------------------------------------------------------
-#include "pico/asm_helper.S"
+//#include "pico/asm_helper.S"
#include "hardware/regs/addressmap.h"
#include "hardware/regs/ssi.h"
diff --git a/lib/rp2040/rp2040.patch b/lib/rp2040/rp2040.patch
index 0aa24bd5..bae9e6d1 100644
--- a/lib/rp2040/rp2040.patch
+++ b/lib/rp2040/rp2040.patch
@@ -1,3 +1,16 @@
+diff --git a/lib/rp2040/boot_stage2/boot2_generic_03h.S b/lib/rp2040/boot_stage2/boot2_generic_03h.S
+index a10e66abd..cc7e4fbc7 100644
+--- a/lib/rp2040/boot_stage2/boot2_generic_03h.S
++++ b/lib/rp2040/boot_stage2/boot2_generic_03h.S
+@@ -16,7 +16,7 @@
+ // 4-byte checksum. Therefore code size cannot exceed 252 bytes.
+ // ----------------------------------------------------------------------------
+
+-#include "pico/asm_helper.S"
++//#include "pico/asm_helper.S"
+ #include "hardware/regs/addressmap.h"
+ #include "hardware/regs/ssi.h"
+
diff --git a/lib/rp2040/boot_stage2/boot2_w25q080.S b/lib/rp2040/boot_stage2/boot2_w25q080.S
index ad3238e2..8fb3def4 100644
--- a/lib/rp2040/boot_stage2/boot2_w25q080.S