File tree Expand file tree Collapse file tree 5 files changed +61
-0
lines changed Expand file tree Collapse file tree 5 files changed +61
-0
lines changed Original file line number Diff line number Diff line change 26
26
zephyr,sram = &sram0;
27
27
zephyr,flash = &flash;
28
28
zephyr,flash-controller = &fmu;
29
+ zephyr,code-partition = &slot0_partition;
29
30
zephyr,console = &lpuart2;
30
31
zephyr,shell-uart = &lpuart2;
31
32
};
113
114
pinctrl-0 = <&pinmux_lpuart2>;
114
115
pinctrl-names = "default";
115
116
};
117
+
118
+ &flash {
119
+ partitions {
120
+ compatible = "fixed-partitions";
121
+ #address-cells = <1>;
122
+ #size-cells = <1>;
123
+
124
+ boot_partition: partition@0 {
125
+ label = "mcuboot";
126
+ reg = <0x00000000 DT_SIZE_K(64)>;
127
+ read-only;
128
+ };
129
+ slot0_partition: partition@10000 {
130
+ label = "image-0";
131
+ reg = <0x00010000 DT_SIZE_K(400)>;
132
+ };
133
+ slot1_partition: partition@74000 {
134
+ label = "image-1";
135
+ reg = <0x00074000 DT_SIZE_K(400)>;
136
+ };
137
+ storage_partition: partition@d8000 {
138
+ label = "storage";
139
+ reg = <0x000d8000 DT_SIZE_K(112)>;
140
+ };
141
+ };
142
+ };
Original file line number Diff line number Diff line change @@ -16,4 +16,5 @@ toolchain:
16
16
supported :
17
17
- gpio
18
18
- uart
19
+ - flash
19
20
vendor : nxp
Original file line number Diff line number Diff line change 26
26
zephyr,sram = &sram0;
27
27
zephyr,flash = &flash;
28
28
zephyr,flash-controller = &fmu;
29
+ zephyr,code-partition = &slot0_partition;
29
30
zephyr,console = &lpuart2;
30
31
zephyr,shell-uart = &lpuart2;
31
32
};
113
114
pinctrl-0 = <&pinmux_lpuart2>;
114
115
pinctrl-names = "default";
115
116
};
117
+
118
+ &flash {
119
+ partitions {
120
+ compatible = "fixed-partitions";
121
+ #address-cells = <1>;
122
+ #size-cells = <1>;
123
+
124
+ boot_partition: partition@0 {
125
+ label = "mcuboot";
126
+ reg = <0x00000000 DT_SIZE_K(64)>;
127
+ read-only;
128
+ };
129
+ slot0_partition: partition@10000 {
130
+ label = "image-0";
131
+ reg = <0x00010000 DT_SIZE_K(400)>;
132
+ };
133
+ slot1_partition: partition@74000 {
134
+ label = "image-1";
135
+ reg = <0x00074000 DT_SIZE_K(400)>;
136
+ };
137
+ storage_partition: partition@d8000 {
138
+ label = "storage";
139
+ reg = <0x000d8000 DT_SIZE_K(112)>;
140
+ };
141
+ };
142
+ };
Original file line number Diff line number Diff line change @@ -16,4 +16,5 @@ toolchain:
16
16
supported :
17
17
- gpio
18
18
- uart
19
+ - flash
19
20
vendor : nxp
Original file line number Diff line number Diff line change @@ -138,6 +138,11 @@ static void clear_flash_caches(void)
138
138
/* this bit clears the code cache */
139
139
* lpcac_ctrl |= BIT (1 );
140
140
}
141
+ #elif CONFIG_SOC_SERIES_MCXA
142
+ static void clear_flash_caches (void )
143
+ {
144
+ SYSCON -> LPCAC_CTRL |= SYSCON_LPCAC_CTRL_DIS_LPCAC (1U );
145
+ }
141
146
#else
142
147
#undef SOC_FLASH_NEED_CLEAR_CACHES
143
148
#define clear_flash_caches (...)
You can’t perform that action at this time.
0 commit comments