Skip to content

Commit d0a1e18

Browse files
committed
boards: waveshare: rp2040_plus: add 16M flash variant
This board is available with 4MB and 16MB flash. Signed-off-by: David Schneider <[email protected]>
1 parent ad4c3e3 commit d0a1e18

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

boards/waveshare/rp2040_plus/board.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ board:
44
vendor: waveshare
55
socs:
66
- name: rp2040
7+
revision:
8+
format: custom
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
set(BOARD_REVISIONS "4M" "16M")
2+
if(NOT DEFINED BOARD_REVISION)
3+
set(BOARD_REVISION "4M")
4+
else()
5+
if(NOT BOARD_REVISION IN_LIST BOARD_REVISIONS)
6+
message(FATAL_ERROR "${BOARD_REVISION} is not a valid revision for rp2040_plus. Accepted revisions: ${BOARD_REVISIONS}")
7+
endif()
8+
endif()

boards/waveshare/rp2040_plus/rp2040_plus.dts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@
8686
};
8787

8888
&flash0 {
89-
reg = <0x10000000 DT_SIZE_M(4)>;
90-
9189
partitions {
9290
compatible = "fixed-partitions";
9391
#address-cells = <1>;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
&flash0 {
2+
reg = <0x10000000 DT_SIZE_M(16)>;
3+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
&flash0 {
2+
reg = <0x10000000 DT_SIZE_M(4)>;
3+
};

0 commit comments

Comments
 (0)