2019-11-01 20:45:29 +08:00
|
|
|
# STM32H747I DISCOVERY board configuration
|
|
|
|
|
2019-07-01 22:54:34 +08:00
|
|
|
# Copyright (c) 2019 Linaro Limited
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-07-01 22:57:02 +08:00
|
|
|
if BOARD_STM32H747I_DISCO_M7 || BOARD_STM32H747I_DISCO_M4
|
2019-07-01 22:54:34 +08:00
|
|
|
|
|
|
|
config BOARD
|
|
|
|
default "stm32h747i_disco_m7" if BOARD_STM32H747I_DISCO_M7
|
2019-07-01 22:57:02 +08:00
|
|
|
default "stm32h747i_disco_m4" if BOARD_STM32H747I_DISCO_M4
|
|
|
|
|
2019-08-01 17:27:35 +08:00
|
|
|
# clock configuration
|
2019-07-01 22:57:02 +08:00
|
|
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
2019-08-01 20:18:22 +08:00
|
|
|
default 400000000 if BOARD_STM32H747I_DISCO_M7
|
|
|
|
# SYS_CLOCK_M4 = SYS_CLOCK_M7 / CLOCK_STM32_HPRE
|
|
|
|
default 200000000 if BOARD_STM32H747I_DISCO_M4
|
2019-07-01 22:57:02 +08:00
|
|
|
|
2019-08-01 17:27:35 +08:00
|
|
|
config CLOCK_STM32_D1CPRE
|
|
|
|
default 1
|
|
|
|
|
|
|
|
config CLOCK_STM32_HPRE
|
|
|
|
# HCLK: 200MHz
|
|
|
|
default 2
|
|
|
|
|
|
|
|
config CLOCK_STM32_D2PPRE1
|
|
|
|
# APBX: 100MHz
|
|
|
|
default 2
|
|
|
|
|
|
|
|
config CLOCK_STM32_D2PPRE2
|
|
|
|
default 2
|
|
|
|
|
|
|
|
config CLOCK_STM32_D1PPRE
|
|
|
|
default 2
|
|
|
|
|
|
|
|
config CLOCK_STM32_D3PPRE
|
|
|
|
default 2
|
|
|
|
|
2019-07-01 22:57:02 +08:00
|
|
|
config STM32H7_DUAL_CORE
|
2019-10-24 14:13:13 +08:00
|
|
|
default y
|
2019-07-01 22:57:02 +08:00
|
|
|
|
2020-02-10 11:18:50 +08:00
|
|
|
# Dual core boot configuration. Boot method is selected in common file to avoid
|
|
|
|
# desync issues.
|
2019-07-01 22:57:02 +08:00
|
|
|
choice STM32H7_DUAL_CORE_BOOT
|
|
|
|
# Use out of the box config by default
|
|
|
|
# default STM32H7_BOOT_CM4_CM7
|
|
|
|
default STM32H7_BOOT_CM7_CM4GATED
|
2020-02-10 11:18:50 +08:00
|
|
|
depends on STM32H7_DUAL_CORE
|
2019-07-01 22:57:02 +08:00
|
|
|
endchoice
|
2019-07-01 22:54:34 +08:00
|
|
|
|
|
|
|
endif # BOARD_STM32H747I_DISCO_M7
|