2021-10-22 08:19:25 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2021, STMicroelectronics - All Rights Reserved
|
|
|
|
*
|
2022-05-20 16:38:10 +00:00
|
|
|
* Configuration settings for the STMicroelectronics STM32MP15x boards
|
2021-10-22 08:19:25 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_STM32MP15_ST_COMMON_H__
|
|
|
|
#define __CONFIG_STM32MP15_ST_COMMON_H__
|
|
|
|
|
2022-04-15 12:31:54 +00:00
|
|
|
#define STM32MP_BOARD_EXTRA_ENV \
|
2023-03-16 07:03:42 +00:00
|
|
|
"usb_pgood_delay=2000\0" \
|
2022-04-15 12:31:54 +00:00
|
|
|
"console=ttySTM0\0"
|
|
|
|
|
2021-10-22 08:19:25 +00:00
|
|
|
#include <configs/stm32mp15_common.h>
|
|
|
|
|
2022-04-15 12:31:55 +00:00
|
|
|
/* uart with on-board st-link */
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, \
|
2022-04-15 12:31:55 +00:00
|
|
|
230400, 460800, 921600, \
|
|
|
|
1000000, 2000000 }
|
|
|
|
|
2022-12-04 15:03:50 +00:00
|
|
|
#ifdef CFG_EXTRA_ENV_SETTINGS
|
2021-10-22 08:19:25 +00:00
|
|
|
/*
|
|
|
|
* default bootcmd for stm32mp1 STMicroelectronics boards:
|
|
|
|
* for serial/usb: execute the stm32prog command
|
|
|
|
* for mmc boot (eMMC, SD card), distro boot on the same mmc device
|
|
|
|
* for nand or spi-nand boot, distro boot with ubifs on UBI partition
|
|
|
|
* for nor boot, distro boot on SD card = mmc0 ONLY !
|
|
|
|
*/
|
|
|
|
#define ST_STM32MP1_BOOTCMD "bootcmd_stm32mp=" \
|
|
|
|
"echo \"Boot over ${boot_device}${boot_instance}!\";" \
|
|
|
|
"if test ${boot_device} = serial || test ${boot_device} = usb;" \
|
|
|
|
"then stm32prog ${boot_device} ${boot_instance}; " \
|
|
|
|
"else " \
|
|
|
|
"run env_check;" \
|
|
|
|
"if test ${boot_device} = mmc;" \
|
|
|
|
"then env set boot_targets \"mmc${boot_instance}\"; fi;" \
|
|
|
|
"if test ${boot_device} = nand ||" \
|
|
|
|
" test ${boot_device} = spi-nand ;" \
|
|
|
|
"then env set boot_targets ubifs0; fi;" \
|
|
|
|
"if test ${boot_device} = nor;" \
|
|
|
|
"then env set boot_targets mmc0; fi;" \
|
|
|
|
"run distro_bootcmd;" \
|
|
|
|
"fi;\0"
|
|
|
|
|
2022-12-04 15:03:50 +00:00
|
|
|
#undef CFG_EXTRA_ENV_SETTINGS
|
|
|
|
#define CFG_EXTRA_ENV_SETTINGS \
|
2021-10-22 08:19:25 +00:00
|
|
|
STM32MP_MEM_LAYOUT \
|
|
|
|
ST_STM32MP1_BOOTCMD \
|
|
|
|
STM32MP_PARTS_DEFAULT \
|
|
|
|
BOOTENV \
|
2022-07-11 17:45:50 +00:00
|
|
|
STM32MP_EXTRA \
|
|
|
|
STM32MP_BOARD_EXTRA_ENV
|
2021-10-22 08:19:25 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|