Skip to content

Commit

Permalink
boards: colibri_imx7d_m4/warp7_m4: Remove CONFIG_XIP for dts
Browse files Browse the repository at this point in the history
Move the how enabling of CONFIG_XIP impacts CONFIG_FLASH_SIZE and
CONFIG_FLASH_BASE_ADDRESS to Kconfig instead of dts.

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak committed Jan 31, 2019
1 parent d4ed823 commit d8a9fb8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
7 changes: 7 additions & 0 deletions boards/arm/colibri_imx7d_m4/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,12 @@ config PWM_1

endif # PWM_IMX

if !XIP
config FLASH_SIZE
default 0
config FLASH_BASE_ADDRESS
default 0
endif


endif # BOARD_COLIBRI_IMX7D_M4
2 changes: 0 additions & 2 deletions boards/arm/colibri_imx7d_m4/colibri_imx7d_m4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
};

chosen {
#if defined(CONFIG_XIP)
zephyr,flash = &tcml_code;
#endif
zephyr,sram = &tcmu_sys;
zephyr,console = &uart2;
zephyr,shell-uart = &uart2;
Expand Down
7 changes: 7 additions & 0 deletions boards/arm/warp7_m4/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,11 @@ config FXAS21002_DRDY_INT1

endif # FXAS21002

if !XIP
config FLASH_SIZE
default 0
config FLASH_BASE_ADDRESS
default 0
endif

endif # BOARD_WARP7_M4
2 changes: 0 additions & 2 deletions boards/arm/warp7_m4/warp7_m4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
};

chosen {
#if defined(CONFIG_XIP)
zephyr,flash = &tcml_code;
#endif
zephyr,sram = &tcmu_sys;
zephyr,console = &uart2;
zephyr,shell-uart = &uart2;
Expand Down

0 comments on commit d8a9fb8

Please sign in to comment.