Skip to content

Commit

Permalink
[LTD fromlist] arm: nxp: k6x: Add default partition table.
Browse files Browse the repository at this point in the history
Recent changes (6925504, 91f67a1, 84628e8, fa4a393) add support
for a partition table in the flash.  Add support for this to the nxp
k6x dtsi file.  By default, code will occupy the entire flash.  By
setting a chosen node in an application, the code can be linked into
one of the partitions.  For example, and app could create a
'frdm_k64f.overlay' file at the top of their project with:

	/ {
		chosen {
			zephyr,code-partition = &slot0_partition;
		};
	};

to place an application in slot 0.

Signed-off-by: David Brown <[email protected]>
  • Loading branch information
d3zd3z authored and Marti Bolivar committed Jun 16, 2017
1 parent 370a217 commit a014822
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions dts/arm/nxp/nxp_k6x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,34 @@

flash0: flash@0 {
reg = <0 0x100000>;

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x00010000>;
read-only;
};
app_state_partition: partition@10000 {
label = "application-state";
reg = <0x00010000 0x00010000>;
};
slot0_partition: partition@20000 {
label = "image-0";
reg = <0x00020000 0x00060000>;
};
slot1_partition: partition@60000 {
label = "image-1";
reg = <0x00080000 0x00060000>;
};
scratch_partition: partition@e0000 {
label = "image-scratch";
reg = <0x000e0000 0x00020000>;
};
};
};
};

Expand Down

0 comments on commit a014822

Please sign in to comment.