Merge tag 'u-boot-stm32-20200117' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm
- stm32mp1: split SOC and board and cleanup config
This commit is contained in:
7
board/st/common/Kconfig
Normal file
7
board/st/common/Kconfig
Normal file
@@ -0,0 +1,7 @@
|
||||
config CMD_STBOARD
|
||||
bool "stboard - command for OTP board information"
|
||||
depends on ARCH_STM32MP
|
||||
default y if TARGET_ST_STM32MP15x
|
||||
help
|
||||
This compile the stboard command to
|
||||
read and write the board in the OTP.
|
||||
6
board/st/common/MAINTAINERS
Normal file
6
board/st/common/MAINTAINERS
Normal file
@@ -0,0 +1,6 @@
|
||||
ST BOARDS
|
||||
M: Patrick Delaunay <patrick.delaunay@st.com>
|
||||
L: uboot-stm32@st-md-mailman.stormreply.com (moderated for non-subscribers)
|
||||
T: git https://gitlab.denx.de/u-boot/custodians/u-boot-stm.git
|
||||
S: Maintained
|
||||
F: board/st/common/
|
||||
6
board/st/common/Makefile
Normal file
6
board/st/common/Makefile
Normal file
@@ -0,0 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
|
||||
#
|
||||
# Copyright (C) 2020, STMicroelectronics - All Rights Reserved
|
||||
#
|
||||
|
||||
obj-$(CONFIG_CMD_STBOARD) += cmd_stboard.o
|
||||
@@ -3,6 +3,7 @@
|
||||
* Copyright (C) 2019, STMicroelectronics - All Rights Reserved
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
#include <common.h>
|
||||
#include <console.h>
|
||||
#include <misc.h>
|
||||
@@ -143,3 +144,5 @@ U_BOOT_CMD(stboard, 6, 0, do_stboard,
|
||||
" - Variant: 1 ... 15\n"
|
||||
" - Revision: A...O\n"
|
||||
" - BOM: 1...15\n");
|
||||
|
||||
#endif
|
||||
@@ -1,4 +1,4 @@
|
||||
if TARGET_STM32MP1
|
||||
if TARGET_ST_STM32MP15x
|
||||
|
||||
config SYS_BOARD
|
||||
default "stm32mp1"
|
||||
@@ -9,21 +9,5 @@ config SYS_VENDOR
|
||||
config SYS_CONFIG_NAME
|
||||
default "stm32mp1"
|
||||
|
||||
config ENV_SECT_SIZE
|
||||
default 0x40000 if ENV_IS_IN_SPI_FLASH
|
||||
|
||||
config ENV_OFFSET
|
||||
default 0x280000 if ENV_IS_IN_SPI_FLASH
|
||||
|
||||
config CMD_STBOARD
|
||||
bool "stboard - command for OTP board information"
|
||||
default y
|
||||
help
|
||||
This compile the stboard command to
|
||||
read and write the board in the OTP.
|
||||
|
||||
config TARGET_STM32MP157C_DK2
|
||||
bool "support of STMicroelectronics STM32MP157C-DK2 Discovery Board"
|
||||
default y
|
||||
|
||||
source "board/st/common/Kconfig"
|
||||
endif
|
||||
|
||||
@@ -7,7 +7,6 @@ ifdef CONFIG_SPL_BUILD
|
||||
obj-y += spl.o
|
||||
else
|
||||
obj-y += stm32mp1.o
|
||||
obj-$(CONFIG_CMD_STBOARD) += cmd_stboard.o
|
||||
endif
|
||||
|
||||
obj-y += board.o
|
||||
|
||||
@@ -608,7 +608,7 @@ error:
|
||||
|
||||
static bool board_is_dk2(void)
|
||||
{
|
||||
if (CONFIG_IS_ENABLED(TARGET_STM32MP157C_DK2) &&
|
||||
if (CONFIG_IS_ENABLED(TARGET_ST_STM32MP15x) &&
|
||||
of_machine_is_compatible("st,stm32mp157c-dk2"))
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user