stm32mp1: move stboard command in board/st/common directory

Move the ST command in board/st/common, as this command is only used
by ST board. Prepare the support in U-Boot of boards with STM32MP15x
SOC but not STMicroelectronics.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:
Patrick Delaunay 2020-01-13 15:17:40 +01:00
parent c3ab0fe6c1
commit ba2c20ce7a
6 changed files with 23 additions and 8 deletions

6
board/st/common/Kconfig Normal file
View File

@ -0,0 +1,6 @@
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.

View 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
View 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

View File

@ -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

View File

@ -15,15 +15,10 @@ config ENV_SECT_SIZE
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

View File

@ -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