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:
parent
52bca037be
commit
1e92c22a13
4 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue