drivers: flash: flash_simulator: Convert to new DT macros

Convert flash_simulator to use new DT macros and remove associated
defines in dts_fixup.h.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-04-28 08:34:02 -05:00 committed by Kumar Gala
commit 50345848b4
4 changed files with 20 additions and 22 deletions

View file

@ -2,13 +2,6 @@
/* Board level DTS fixup file */
#define DT_FLASH_DEV_NAME DT_ZEPHYR_SIM_FLASH_SIM_FLASH_LABEL
#define DT_FLASH_SIM_BASE_ADDRESS DT_SOC_NV_FLASH_0_BASE_ADDRESS
#define DT_FLASH_SIM_ERASE_BLOCK_SIZE DT_SOC_NV_FLASH_0_ERASE_BLOCK_SIZE
#define DT_FLASH_SIM_SIZE DT_SOC_NV_FLASH_0_SIZE
#define DT_FLASH_SIM_WRITE_BLOCK_SIZE DT_SOC_NV_FLASH_0_WRITE_BLOCK_SIZE
#define DT_FLASH_ERASE_BLOCK_SIZE DT_SOC_NV_FLASH_0_ERASE_BLOCK_SIZE
#define DT_FLASH_WRITE_BLOCK_SIZE DT_SOC_NV_FLASH_0_WRITE_BLOCK_SIZE