nucleo_l476rg: Enable device tree usage for Nucleo

This patch adds all the necessary changes to enable use of DTS for
generating required build information.

Change-Id: Ia476fbb14c7d9d6b9db3340c73f599556a880da3
Signed-off-by: Andy Gross <andy.gross@linaro.org>
This commit is contained in:
Erwan Gouriou 2017-02-04 23:48:31 -06:00 committed by Anas Nashif
commit 1e92c22a13
4 changed files with 9 additions and 0 deletions

View file

@ -2,10 +2,12 @@ source "arch/arm/soc/st_stm32/*/Kconfig.defconfig.series"
if SOC_FAMILY_STM32
if !HAS_DTS
config SRAM_BASE_ADDRESS
default 0x20000000
config FLASH_BASE_ADDRESS
default 0x08000000
endif # !HAS_DTS
endif # SOC_FAMILY_STM32

View file

@ -13,8 +13,10 @@ source "arch/arm/soc/st_stm32/stm32l4/Kconfig.defconfig.stm32l4*"
config SOC_SERIES
default stm32l4
if !HAS_DTS
config NUM_IRQ_PRIO_BITS
int
default 4
endif # !HAS_DTS
endif # SOC_SERIES_STM32L4X

View file

@ -12,6 +12,7 @@ config SOC
string
default stm32l476xx
if !HAS_DTS
config SRAM_SIZE
default 96
@ -21,6 +22,7 @@ config FLASH_SIZE
config NUM_IRQS
int
default 82
endif # !HAS_DTS
endif # SOC_STM32L476XX

View file

@ -54,3 +54,6 @@ CONFIG_UART_CONSOLE_ON_DEV_NAME="UART_2"
CONFIG_PWM=y
CONFIG_PWM_STM32=y
CONFIG_PWM_STM32_2=y
#enable DTS
CONFIG_HAS_DTS=y