GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
if STM32
|
||||
|
||||
config STM32F4
|
||||
bool "stm32f4 family"
|
||||
select CLK
|
||||
select DM_GPIO
|
||||
select DM_RESET
|
||||
select MISC
|
||||
select PINCTRL
|
||||
select PINCTRL_STM32
|
||||
select RAM
|
||||
select STM32_RCC
|
||||
select STM32_RESET
|
||||
select STM32_SDRAM
|
||||
select STM32_SERIAL
|
||||
select STM32_TIMER
|
||||
select TIMER
|
||||
|
||||
config STM32F7
|
||||
bool "stm32f7 family"
|
||||
select CLK
|
||||
select DM_GPIO
|
||||
select DM_RESET
|
||||
select MISC
|
||||
select PINCTRL
|
||||
select PINCTRL_STM32
|
||||
select RAM
|
||||
select SPL
|
||||
select SPL_BOARD_INIT
|
||||
select SPL_CLK
|
||||
select SPL_DM
|
||||
select SPL_DM_RESET
|
||||
select SPL_DM_SEQ_ALIAS
|
||||
select SPL_DRIVERS_MISC_SUPPORT
|
||||
select SPL_GPIO_SUPPORT
|
||||
select SPL_LIBCOMMON_SUPPORT
|
||||
select SPL_LIBGENERIC_SUPPORT
|
||||
select SPL_MTD_SUPPORT
|
||||
select SPL_OF_CONTROL
|
||||
select SPL_OF_LIBFDT
|
||||
select SPL_OF_TRANSLATE
|
||||
select SPL_PINCTRL
|
||||
select SPL_RAM
|
||||
select SPL_SERIAL_SUPPORT
|
||||
select SPL_SYS_MALLOC_SIMPLE
|
||||
select SPL_TIMER
|
||||
select SPL_XIP_SUPPORT
|
||||
select STM32_RCC
|
||||
select STM32_RESET
|
||||
select STM32_SDRAM
|
||||
select STM32_SERIAL
|
||||
select STM32_TIMER
|
||||
select SUPPORT_SPL
|
||||
select TIMER
|
||||
imply SPL_OS_BOOT
|
||||
|
||||
config STM32H7
|
||||
bool "stm32h7 family"
|
||||
select CLK
|
||||
select DM_GPIO
|
||||
select DM_RESET
|
||||
select MISC
|
||||
select PINCTRL
|
||||
select PINCTRL_STM32
|
||||
select RAM
|
||||
select REGMAP
|
||||
select STM32_RCC
|
||||
select STM32_RESET
|
||||
select STM32_SDRAM
|
||||
select STM32_SERIAL
|
||||
select STM32_TIMER
|
||||
select SYSCON
|
||||
select TIMER
|
||||
|
||||
source "arch/arm/mach-stm32/stm32f4/Kconfig"
|
||||
source "arch/arm/mach-stm32/stm32f7/Kconfig"
|
||||
source "arch/arm/mach-stm32/stm32h7/Kconfig"
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
# (C) Copyright 2000-2006
|
||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
obj-y += soc.o
|
||||
@@ -0,0 +1,39 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* Copyright (C) 2017, STMicroelectronics - All Rights Reserved
|
||||
* Author(s): Patrice Chotard, <patrice.chotard@st.com> for STMicroelectronics.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/armv7_mpu.h>
|
||||
|
||||
int arch_cpu_init(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
struct mpu_region_config stm32_region_config[] = {
|
||||
/*
|
||||
* Make SDRAM area cacheable & executable.
|
||||
*/
|
||||
#if defined(CONFIG_STM32F4)
|
||||
{ 0x00000000, REGION_0, XN_DIS, PRIV_RW_USR_RW,
|
||||
O_I_WB_RD_WR_ALLOC, REGION_512MB },
|
||||
#endif
|
||||
|
||||
{ 0x90000000, REGION_1, XN_DIS, PRIV_RW_USR_RW,
|
||||
SHARED_WRITE_BUFFERED, REGION_256MB },
|
||||
|
||||
#if defined(CONFIG_STM32F7) || defined(CONFIG_STM32H7)
|
||||
{ 0xC0000000, REGION_0, XN_DIS, PRIV_RW_USR_RW,
|
||||
O_I_WB_RD_WR_ALLOC, REGION_512MB },
|
||||
#endif
|
||||
};
|
||||
|
||||
disable_mpu();
|
||||
for (i = 0; i < ARRAY_SIZE(stm32_region_config); i++)
|
||||
mpu_config(&stm32_region_config[i]);
|
||||
enable_mpu();
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
if STM32F4
|
||||
|
||||
config TARGET_STM32F429_DISCOVERY
|
||||
bool "STM32F429 Discovery board"
|
||||
|
||||
config TARGET_STM32F429_EVALUATION
|
||||
bool "STM32F429 Evaluation board"
|
||||
|
||||
config TARGET_STM32F469_DISCOVERY
|
||||
bool "STM32F469 Discovery board"
|
||||
|
||||
source "board/st/stm32f429-discovery/Kconfig"
|
||||
source "board/st/stm32f429-evaluation/Kconfig"
|
||||
source "board/st/stm32f469-discovery/Kconfig"
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,8 @@
|
||||
if STM32F7
|
||||
|
||||
config TARGET_STM32F746_DISCO
|
||||
bool "STM32F746 Discovery board"
|
||||
|
||||
source "board/st/stm32f746-disco/Kconfig"
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,12 @@
|
||||
if STM32H7
|
||||
|
||||
config TARGET_STM32H743_DISCO
|
||||
bool "STM32H743 Discovery board"
|
||||
|
||||
config TARGET_STM32H743_EVAL
|
||||
bool "STM32H743 Evaluation board"
|
||||
|
||||
source "board/st/stm32h743-eval/Kconfig"
|
||||
source "board/st/stm32h743-disco/Kconfig"
|
||||
|
||||
endif
|
||||
Reference in New Issue
Block a user