olimexino_stm32: Enable DT usage for OLIMEXINO STM32

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

Change-Id: I0d7aa15488339a425ffe57b6354992851212f7f3
Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
This commit is contained in:
Yannis Damigos 2017-02-19 20:02:52 +02:00 committed by Kumar Gala
parent a7b6d769d4
commit fedf497b03
3 changed files with 8 additions and 0 deletions

View file

@ -12,9 +12,11 @@ source "arch/arm/soc/st_stm32/stm32f1/Kconfig.defconfig.stm32f1*"
config SOC_SERIES
default stm32f1
if !HAS_DTS
config NUM_IRQ_PRIO_BITS
int
default 4
endif # !HAS_DTS
if WATCHDOG

View file

@ -10,6 +10,8 @@ if SOC_STM32F103XB
config SOC
string
default stm32f103xb
if !HAS_DTS
config SRAM_SIZE
default 20
@ -19,6 +21,7 @@ config FLASH_SIZE
config NUM_IRQS
int
default 59
endif # !HAS_DTS
endif # SOC_STM32F103XB

View file

@ -42,3 +42,6 @@ CONFIG_CLOCK_STM32F10X_AHB_PRESCALER=0
# APB1 clock must not exceed 36MHz limit
CONFIG_CLOCK_STM32F10X_APB1_PRESCALER=2
CONFIG_CLOCK_STM32F10X_APB2_PRESCALER=0
#enable DTS
CONFIG_HAS_DTS=y