drivers: flash: replace DT_FLASH_DEV_NAME with DT macro
Replace DT_FLASH_DEV_NAME with DT_CHOSEN_ZEPHYR_FLASH_CONTROLLER_LABEL. We now set zephyr,flash-controller in the chosen node of the device tree to the flash controller device. NOTE: For a SoCs with on die flash, this points to the controller and not the 'soc-nv-flash' node. Typically the controller is the parent of the 'soc-nv-flash' node). Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
008f9c08a2
commit
7a15afc1d4
68 changed files with 237 additions and 71 deletions
|
@ -11,6 +11,10 @@
|
|||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zephyr,flash-controller = &flash;
|
||||
};
|
||||
|
||||
cpus {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
@ -27,7 +31,7 @@
|
|||
};
|
||||
|
||||
soc {
|
||||
flash-controller@40022000 {
|
||||
flash: flash-controller@40022000 {
|
||||
compatible = "st,stm32-flash-controller", "st,stm32f0-flash-controller";
|
||||
label = "FLASH_CTRL";
|
||||
reg = <0x40022000 0x400>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue