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:
parent
a7b6d769d4
commit
fedf497b03
3 changed files with 8 additions and 0 deletions
|
@ -12,9 +12,11 @@ source "arch/arm/soc/st_stm32/stm32f1/Kconfig.defconfig.stm32f1*"
|
||||||
config SOC_SERIES
|
config SOC_SERIES
|
||||||
default stm32f1
|
default stm32f1
|
||||||
|
|
||||||
|
if !HAS_DTS
|
||||||
config NUM_IRQ_PRIO_BITS
|
config NUM_IRQ_PRIO_BITS
|
||||||
int
|
int
|
||||||
default 4
|
default 4
|
||||||
|
endif # !HAS_DTS
|
||||||
|
|
||||||
if WATCHDOG
|
if WATCHDOG
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,8 @@ if SOC_STM32F103XB
|
||||||
config SOC
|
config SOC
|
||||||
string
|
string
|
||||||
default stm32f103xb
|
default stm32f103xb
|
||||||
|
|
||||||
|
if !HAS_DTS
|
||||||
config SRAM_SIZE
|
config SRAM_SIZE
|
||||||
default 20
|
default 20
|
||||||
|
|
||||||
|
@ -19,6 +21,7 @@ config FLASH_SIZE
|
||||||
config NUM_IRQS
|
config NUM_IRQS
|
||||||
int
|
int
|
||||||
default 59
|
default 59
|
||||||
|
endif # !HAS_DTS
|
||||||
|
|
||||||
endif # SOC_STM32F103XB
|
endif # SOC_STM32F103XB
|
||||||
|
|
||||||
|
|
|
@ -42,3 +42,6 @@ CONFIG_CLOCK_STM32F10X_AHB_PRESCALER=0
|
||||||
# APB1 clock must not exceed 36MHz limit
|
# APB1 clock must not exceed 36MHz limit
|
||||||
CONFIG_CLOCK_STM32F10X_APB1_PRESCALER=2
|
CONFIG_CLOCK_STM32F10X_APB1_PRESCALER=2
|
||||||
CONFIG_CLOCK_STM32F10X_APB2_PRESCALER=0
|
CONFIG_CLOCK_STM32F10X_APB2_PRESCALER=0
|
||||||
|
|
||||||
|
#enable DTS
|
||||||
|
CONFIG_HAS_DTS=y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue