aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/boards
diff options
context:
space:
mode:
authorPeter Johanson <[email protected]>2024-06-05 01:21:34 -0700
committerPete Johanson <[email protected]>2024-07-03 16:57:22 -0600
commit82eed0f5ddb05fc244385e0ac05704fbdec0c3ee (patch)
tree9591f4681ef06dfbbe9036c3d006840acd71ac78 /app/boards
parentb4f9081b090ac8116476e078439b177eb9487e62 (diff)
downloadzmk-82eed0f5ddb05fc244385e0ac05704fbdec0c3ee.tar.gz
zmk-82eed0f5ddb05fc244385e0ac05704fbdec0c3ee.zip
feat(boards): Add flash/settings to XIAO RP2040.
* Add storage partition. * Default necessacy Kconfig symbols for flash/settings.
Diffstat (limited to 'app/boards')
-rw-r--r--app/boards/seeeduino_xiao_rp2040.conf7
-rw-r--r--app/boards/seeeduino_xiao_rp2040.overlay15
2 files changed, 22 insertions, 0 deletions
diff --git a/app/boards/seeeduino_xiao_rp2040.conf b/app/boards/seeeduino_xiao_rp2040.conf
index 21c1893d91..714e715cc8 100644
--- a/app/boards/seeeduino_xiao_rp2040.conf
+++ b/app/boards/seeeduino_xiao_rp2040.conf
@@ -2,3 +2,10 @@ CONFIG_CONSOLE=n
CONFIG_SERIAL=n
CONFIG_UART_CONSOLE=n
CONFIG_ZMK_USB=y
+
+CONFIG_MPU_ALLOW_FLASH_WRITE=y
+CONFIG_NVS=y
+CONFIG_SETTINGS_NVS=y
+CONFIG_FLASH=y
+CONFIG_FLASH_PAGE_LAYOUT=y
+CONFIG_FLASH_MAP=y
diff --git a/app/boards/seeeduino_xiao_rp2040.overlay b/app/boards/seeeduino_xiao_rp2040.overlay
index b5d2cdb2fd..e6ba813649 100644
--- a/app/boards/seeeduino_xiao_rp2040.overlay
+++ b/app/boards/seeeduino_xiao_rp2040.overlay
@@ -5,3 +5,18 @@
*/
&xiao_serial { status = "disabled"; };
+
+&code_partition {
+ reg = <0x100 (DT_SIZE_M(2) - 0x100 - DT_SIZE_K(512))>;
+};
+
+&flash0 {
+ reg = <0x10000000 DT_SIZE_M(2)>;
+
+ partitions {
+ storage_partition: partition@180000 {
+ reg = <0x180000 DT_SIZE_K(512)>;
+ read-only;
+ };
+ };
+};