zephyr/scripts/dts/extract
Findlay Feng 69c15f0ed1 dts: flash_map: Automatically generate of the list of flash area
This Patch add functionality for automatic generation of the flash map
using DTS description. Automatic generation allows to replace
C-hardcoded flash_map.

We generate a set of defines based on the index of a partiion:
	#define DT_FLASH_AREA_<IDX>_OFFSET	0
	#define DT_FLASH_AREA_<IDX>_SIZE	131072
	#define DT_FLASH_AREA_<IDX>_DEV		"FLASH_CTRL"
	#define DT_FLASH_AREA_<IDX>_LABEL	MCUBOOT

Additionally we also define:
	#define DT_FLASH_AREA_NUM		4

and:
	#define DT_FLASH_AREA_<PARTNAME>_ID	0

Signed-off-by: Findlay Feng <i@fengch.me>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-07 10:31:27 -06:00
..
__init__.py scripts: extract_dts_includes.py: factorize globals for module usage 2018-03-26 14:48:49 -04:00
clocks.py scripts/dts/extract: Generate unique defines based on compat & instance 2019-01-14 06:33:29 -06:00
compatible.py scripts/dts: Rename convert_string_to_label() to str_to_label() 2019-02-07 10:39:37 +01:00
default.py scripts/dts: Rename convert_string_to_label() to str_to_label() 2019-02-07 10:39:37 +01:00
directive.py scripts/dts: Rename convert_string_to_label() to str_to_label() 2019-02-07 10:39:37 +01:00
flash.py dts: flash_map: Automatically generate of the list of flash area 2019-02-07 10:31:27 -06:00
globals.py scripts/dts: Rename convert_string_to_label() to str_to_label() 2019-02-07 10:39:37 +01:00
interrupts.py scripts/dts: Rename convert_string_to_label() to str_to_label() 2019-02-07 10:39:37 +01:00
pinctrl.py scripts/dts: Rename convert_string_to_label() to str_to_label() 2019-02-07 10:39:37 +01:00
reg.py scripts/dts: Rename convert_string_to_label() to str_to_label() 2019-02-07 10:39:37 +01:00