stm32: move stm32 specific code to mach-stm32

This patch moves stm32 sources at one place, with this armv7m now contains
only generic stuff.

Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
This commit is contained in:
Vikas Manocha 2016-01-15 17:49:06 -08:00 committed by Tom Rini
parent a260af6118
commit 0a61ee880c
19 changed files with 39 additions and 7 deletions

View file

@ -702,8 +702,8 @@ config ARCH_UNIPHIER
Support for UniPhier SoC family developed by Socionext Inc. Support for UniPhier SoC family developed by Socionext Inc.
(formerly, System LSI Business Division of Panasonic Corporation) (formerly, System LSI Business Division of Panasonic Corporation)
config TARGET_STM32F429_DISCOVERY config STM32
bool "Support STM32F429 Discovery" bool "Support STM32"
select CPU_V7M select CPU_V7M
select DM select DM
select DM_SERIAL select DM_SERIAL
@ -762,6 +762,8 @@ source "arch/arm/mach-s5pc1xx/Kconfig"
source "arch/arm/mach-socfpga/Kconfig" source "arch/arm/mach-socfpga/Kconfig"
source "arch/arm/mach-stm32/Kconfig"
source "arch/arm/mach-tegra/Kconfig" source "arch/arm/mach-tegra/Kconfig"
source "arch/arm/mach-uniphier/Kconfig" source "arch/arm/mach-uniphier/Kconfig"
@ -836,7 +838,6 @@ source "board/spear/spear310/Kconfig"
source "board/spear/spear320/Kconfig" source "board/spear/spear320/Kconfig"
source "board/spear/spear600/Kconfig" source "board/spear/spear600/Kconfig"
source "board/spear/x600/Kconfig" source "board/spear/x600/Kconfig"
source "board/st/stm32f429-discovery/Kconfig"
source "board/st/stv0991/Kconfig" source "board/st/stv0991/Kconfig"
source "board/sunxi/Kconfig" source "board/sunxi/Kconfig"
source "board/syteco/zmx25/Kconfig" source "board/syteco/zmx25/Kconfig"

View file

@ -56,6 +56,7 @@ machine-$(CONFIG_ORION5X) += orion5x
machine-$(CONFIG_ARCH_S5PC1XX) += s5pc1xx machine-$(CONFIG_ARCH_S5PC1XX) += s5pc1xx
machine-$(CONFIG_ARCH_SOCFPGA) += socfpga machine-$(CONFIG_ARCH_SOCFPGA) += socfpga
machine-$(CONFIG_ARCH_ROCKCHIP) += rockchip machine-$(CONFIG_ARCH_ROCKCHIP) += rockchip
machine-$(CONFIG_STM32) += stm32
machine-$(CONFIG_TEGRA) += tegra machine-$(CONFIG_TEGRA) += tegra
machine-$(CONFIG_ARCH_UNIPHIER) += uniphier machine-$(CONFIG_ARCH_UNIPHIER) += uniphier
machine-$(CONFIG_ARCH_ZYNQ) += zynq machine-$(CONFIG_ARCH_ZYNQ) += zynq

View file

@ -7,6 +7,3 @@
extra-y := start.o extra-y := start.o
obj-y += cpu.o obj-y += cpu.o
obj-$(CONFIG_STM32F1) += stm32f1/
obj-$(CONFIG_STM32F4) += stm32f4/

View file

@ -0,0 +1,12 @@
if STM32
config STM32F4
bool "stm32f4 family"
config STM32F1
bool "stm32f1 family"
source "arch/arm/mach-stm32/stm32f4/Kconfig"
source "arch/arm/mach-stm32/stm32f1/Kconfig"
endif

View file

@ -0,0 +1,9 @@
#
# (C) Copyright 2000-2006
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# SPDX-License-Identifier: GPL-2.0+
#
obj-$(CONFIG_STM32F1) += stm32f1/
obj-$(CONFIG_STM32F4) += stm32f4/

View file

@ -0,0 +1,3 @@
if STM32F1
endif

View file

@ -0,0 +1,8 @@
if STM32F4
config TARGET_STM32F429_DISCOVERY
bool "STM32F429 Discovery board"
source "board/st/stm32f429-discovery/Kconfig"
endif

View file

@ -1,4 +1,6 @@
CONFIG_ARM=y CONFIG_ARM=y
CONFIG_STM32=y
CONFIG_STM32F4=y
CONFIG_TARGET_STM32F429_DISCOVERY=y CONFIG_TARGET_STM32F429_DISCOVERY=y
CONFIG_SYS_PROMPT="U-Boot > " CONFIG_SYS_PROMPT="U-Boot > "
# CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_SETEXPR is not set

View file

@ -8,7 +8,6 @@
#ifndef __CONFIG_H #ifndef __CONFIG_H
#define __CONFIG_H #define __CONFIG_H
#define CONFIG_STM32F4
#define CONFIG_SYS_THUMB_BUILD #define CONFIG_SYS_THUMB_BUILD
#define CONFIG_STM32F4DISCOVERY #define CONFIG_STM32F4DISCOVERY