boards/arm: nucleo_l152re: Enabling flash support in device tree.
Enabling flash support for nucleo-l152re in device tree. This has been tested with flash sample application on nucleo-l152re platform. Documentation has been updated. Signed-off-by: Krishna Mohan Dani <krishnamohan.d@hcl.com>
This commit is contained in:
parent
7b37c94e22
commit
70b25ab698
2 changed files with 16 additions and 0 deletions
|
@ -88,6 +88,8 @@ The Zephyr nucleo_l152re board configuration supports the following hardware fea
|
|||
+-----------+------------+-------------------------------------+
|
||||
| WATCHDOG | on-chip | independent watchdog |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| FLASH | on-chip | flash memory |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| COUNTER | on-chip | rtc |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| ADC | on-chip | ADC Controller |
|
||||
|
|
|
@ -75,3 +75,17 @@
|
|||
status = "okay";
|
||||
pinctrl-0 = <&dac_out1_pa4>;
|
||||
};
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
/* Set 2KB of storage at the end of 512KB flash */
|
||||
storage_partition: partition@7f800 {
|
||||
label = "storage";
|
||||
reg = <0x0007f800 0x00000800>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue