Skip to content

Commit 0fbd0b3

Browse files
committed
boards: raspberrypi: rpi_pico: Include default partitions
Include default 2M partitions for rpi_pico boards. Signed-off-by: John Lin <john.lin@beechwoods.com>
1 parent 11c543e commit 0fbd0b3

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

boards/raspberrypi/rpi_pico/rpi_pico-common.dtsi

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include <zephyr/dt-bindings/i2c/i2c.h>
1414

15+
#include <raspberrypi/partitions_2M_default.dtsi>
1516

1617
/ {
1718
chosen {
@@ -64,29 +65,6 @@
6465

6566
&flash0 {
6667
reg = <0x10000000 DT_SIZE_M(2)>;
67-
68-
partitions {
69-
compatible = "fixed-partitions";
70-
#address-cells = <1>;
71-
#size-cells = <1>;
72-
73-
/* Reserved memory for the second stage bootloader */
74-
second_stage_bootloader: partition@0 {
75-
label = "second_stage_bootloader";
76-
reg = <0x00000000 0x100>;
77-
read-only;
78-
};
79-
80-
/*
81-
* Usable flash. Starts at 0x100, after the bootloader. The partition
82-
* size is 2MB minus the 0x100 bytes taken by the bootloader.
83-
*/
84-
code_partition: partition@100 {
85-
label = "code-partition";
86-
reg = <0x100 (DT_SIZE_M(2) - 0x100)>;
87-
read-only;
88-
};
89-
};
9068
};
9169

9270
&uart0 {

0 commit comments

Comments
 (0)