board: Move beagleplay under beagle vendor folder

Move beagleplay support away from ti/am62x to it's own beagle vendor
folder.

This forms the starting point for new beagle platforms added under it's
own board vendor folder.

As part of this create all the associated files with a bare minimum
beagleplay.c file.

Suggested-by: Andrew Davis <afd@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
[trini: Update k3-binman.dtsi to use full path to scheme.yaml now]
Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Nishanth Menon 2023-11-04 03:01:35 -05:00 committed by Tom Rini
parent 2969ed31b8
commit 73e88a9010
14 changed files with 1636 additions and 25 deletions

View file

@ -32,28 +32,28 @@
filename = "board-cfg.bin"; filename = "board-cfg.bin";
bcfg_yaml: ti-board-config { bcfg_yaml: ti-board-config {
config = "board-cfg.yaml"; config = "board-cfg.yaml";
schema = "../common/schema.yaml"; schema = "board/ti/common/schema.yaml";
}; };
}; };
pm-cfg { pm-cfg {
filename = "pm-cfg.bin"; filename = "pm-cfg.bin";
pcfg_yaml: ti-board-config { pcfg_yaml: ti-board-config {
config = "pm-cfg.yaml"; config = "pm-cfg.yaml";
schema = "../common/schema.yaml"; schema = "board/ti/common/schema.yaml";
}; };
}; };
rm-cfg { rm-cfg {
filename = "rm-cfg.bin"; filename = "rm-cfg.bin";
rcfg_yaml: ti-board-config { rcfg_yaml: ti-board-config {
config = "rm-cfg.yaml"; config = "rm-cfg.yaml";
schema = "../common/schema.yaml"; schema = "board/ti/common/schema.yaml";
}; };
}; };
sec-cfg { sec-cfg {
filename = "sec-cfg.bin"; filename = "sec-cfg.bin";
scfg_yaml: ti-board-config { scfg_yaml: ti-board-config {
config = "sec-cfg.yaml"; config = "sec-cfg.yaml";
schema = "../common/schema.yaml"; schema = "board/ti/common/schema.yaml";
}; };
}; };
combined-tifs-cfg { combined-tifs-cfg {
@ -61,19 +61,19 @@
ti-board-config { ti-board-config {
bcfg_yaml_tifs: board-cfg { bcfg_yaml_tifs: board-cfg {
config = "board-cfg.yaml"; config = "board-cfg.yaml";
schema = "../common/schema.yaml"; schema = "board/ti/common/schema.yaml";
}; };
scfg_yaml_tifs: sec-cfg { scfg_yaml_tifs: sec-cfg {
config = "sec-cfg.yaml"; config = "sec-cfg.yaml";
schema = "../common/schema.yaml"; schema = "board/ti/common/schema.yaml";
}; };
pcfg_yaml_tifs: pm-cfg { pcfg_yaml_tifs: pm-cfg {
config = "pm-cfg.yaml"; config = "pm-cfg.yaml";
schema = "../common/schema.yaml"; schema = "board/ti/common/schema.yaml";
}; };
rcfg_yaml_tifs: rm-cfg { rcfg_yaml_tifs: rm-cfg {
config = "rm-cfg.yaml"; config = "rm-cfg.yaml";
schema = "../common/schema.yaml"; schema = "board/ti/common/schema.yaml";
}; };
}; };
}; };
@ -82,11 +82,11 @@
ti-board-config { ti-board-config {
pcfg_yaml_dm: pm-cfg { pcfg_yaml_dm: pm-cfg {
config = "pm-cfg.yaml"; config = "pm-cfg.yaml";
schema = "../common/schema.yaml"; schema = "board/ti/common/schema.yaml";
}; };
rcfg_yaml_dm: rm-cfg { rcfg_yaml_dm: rm-cfg {
config = "rm-cfg.yaml"; config = "rm-cfg.yaml";
schema = "../common/schema.yaml"; schema = "board/ti/common/schema.yaml";
}; };
}; };
}; };
@ -95,19 +95,19 @@
ti-board-config { ti-board-config {
bcfg_yaml_sysfw: board-cfg { bcfg_yaml_sysfw: board-cfg {
config = "board-cfg.yaml"; config = "board-cfg.yaml";
schema = "../common/schema.yaml"; schema = "board/ti/common/schema.yaml";
}; };
scfg_yaml_sysfw: sec-cfg { scfg_yaml_sysfw: sec-cfg {
config = "sec-cfg.yaml"; config = "sec-cfg.yaml";
schema = "../common/schema.yaml"; schema = "board/ti/common/schema.yaml";
}; };
pcfg_yaml_sysfw: pm-cfg { pcfg_yaml_sysfw: pm-cfg {
config = "pm-cfg.yaml"; config = "pm-cfg.yaml";
schema = "../common/schema.yaml"; schema = "board/ti/common/schema.yaml";
}; };
rcfg_yaml_sysfw: rm-cfg { rcfg_yaml_sysfw: rm-cfg {
config = "rm-cfg.yaml"; config = "rm-cfg.yaml";
schema = "../common/schema.yaml"; schema = "board/ti/common/schema.yaml";
}; };
}; };
}; };

View file

@ -43,6 +43,7 @@ config TARGET_VERDIN_AM62_R5
endchoice endchoice
source "board/beagle/beagleplay/Kconfig"
source "board/ti/am62x/Kconfig" source "board/ti/am62x/Kconfig"
source "board/toradex/verdin-am62/Kconfig" source "board/toradex/verdin-am62/Kconfig"

View file

@ -0,0 +1,60 @@
# SPDX-License-Identifier: GPL-2.0+
#
# Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
# Copyright (C) 2022-2023 Robert Nelson, BeagleBoard.org Foundation
#
choice
prompt "BeagleBoard.org AM625 based BeaglePlay board"
optional
config TARGET_AM625_A53_BEAGLEPLAY
bool "BeagleBoard.org AM625 BeaglePlay running on A53"
select ARM64
select BINMAN
config TARGET_AM625_R5_BEAGLEPLAY
bool "BeagleBoard.org AM625 BeaglePlay running on R5"
select CPU_V7R
select SYS_THUMB_BUILD
select K3_LOAD_SYSFW
select RAM
select SPL_RAM
select K3_DDRSS
select BINMAN
imply SYS_K3_SPL_ATF
endchoice
if TARGET_AM625_A53_BEAGLEPLAY
config SYS_BOARD
default "beagleplay"
config SYS_VENDOR
default "beagle"
config SYS_CONFIG_NAME
default "am62x_evm"
source "board/ti/common/Kconfig"
endif
if TARGET_AM625_R5_BEAGLEPLAY
config SYS_BOARD
default "beagleplay"
config SYS_VENDOR
default "beagle"
config SYS_CONFIG_NAME
default "am62x_evm"
config SPL_LDSCRIPT
default "arch/arm/mach-omap2/u-boot-spl.lds"
source "board/ti/common/Kconfig"
endif

View file

@ -0,0 +1,6 @@
BEAGLEPLAY BOARD
M: Nishanth Menon <nm@ti.com>
M: Robert Nelson <robertcnelson@gmail.com>
M: Tom Rini <trini@konsulko.com>
S: Maintained
N: beagleplay

View file

@ -0,0 +1,9 @@
# SPDX-License-Identifier: GPL-2.0+
#
# https://beagleboard.org/play
#
# Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
# Copyright (C) 2022-2023 Robert Nelson, BeagleBoard.org Foundation
#
obj-y += beagleplay.o

View file

@ -0,0 +1,29 @@
// SPDX-License-Identifier: GPL-2.0
/*
* https://beagleplay.org/
*
* Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
* Copyright (C) 2022-2023 Robert Nelson, BeagleBoard.org Foundation
*/
#include <cpu_func.h>
#include <env.h>
#include <fdt_support.h>
#include <spl.h>
DECLARE_GLOBAL_DATA_PTR;
int board_init(void)
{
return 0;
}
int dram_init(void)
{
return fdtdec_setup_mem_size_base();
}
int dram_init_banksize(void)
{
return fdtdec_setup_memory_banksize();
}

View file

@ -0,0 +1,36 @@
# SPDX-License-Identifier: GPL-2.0+
# Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
#
# Board configuration for AM62
#
---
board-cfg:
rev:
boardcfg_abi_maj : 0x0
boardcfg_abi_min : 0x1
control:
subhdr:
magic: 0xC1D3
size: 7
main_isolation_enable : 0x5A
main_isolation_hostid : 0x2
secproxy:
subhdr:
magic: 0x1207
size: 7
scaling_factor : 0x1
scaling_profile : 0x1
disable_main_nav_secure_proxy : 0
msmc:
subhdr:
magic: 0xA5C3
size: 5
msmc_cache_size : 0x0
debug_cfg:
subhdr:
magic: 0x020C
size: 8
trace_dst_enables : 0x00
trace_src_enables : 0x00

View file

@ -0,0 +1,12 @@
# SPDX-License-Identifier: GPL-2.0+
# Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
#
# Power management configuration for AM62
#
---
pm-cfg:
rev:
boardcfg_abi_maj : 0x0
boardcfg_abi_min : 0x1

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,379 @@
# SPDX-License-Identifier: GPL-2.0+
# Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
#
# Security management configuration for AM62
#
---
sec-cfg:
rev:
boardcfg_abi_maj : 0x0
boardcfg_abi_min : 0x1
processor_acl_list:
subhdr:
magic: 0xF1EA
size: 164
proc_acl_entries:
- #1
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #2
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #3
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #4
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #5
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #6
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #7
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #8
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #9
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #10
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #11
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #12
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #13
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #14
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #15
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #16
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #17
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #18
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #19
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #20
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #21
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #22
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #23
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #24
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #25
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #26
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #27
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #28
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #29
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #30
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #31
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
- #32
processor_id: 0
proc_access_master: 0
proc_access_secondary: [0, 0, 0]
host_hierarchy:
subhdr:
magic: 0x8D27
size: 68
host_hierarchy_entries:
- #1
host_id: 0
supervisor_host_id: 0
- #2
host_id: 0
supervisor_host_id: 0
- #3
host_id: 0
supervisor_host_id: 0
- #4
host_id: 0
supervisor_host_id: 0
- #5
host_id: 0
supervisor_host_id: 0
- #6
host_id: 0
supervisor_host_id: 0
- #7
host_id: 0
supervisor_host_id: 0
- #8
host_id: 0
supervisor_host_id: 0
- #9
host_id: 0
supervisor_host_id: 0
- #10
host_id: 0
supervisor_host_id: 0
- #11
host_id: 0
supervisor_host_id: 0
- #12
host_id: 0
supervisor_host_id: 0
- #13
host_id: 0
supervisor_host_id: 0
- #14
host_id: 0
supervisor_host_id: 0
- #15
host_id: 0
supervisor_host_id: 0
- #16
host_id: 0
supervisor_host_id: 0
- #17
host_id: 0
supervisor_host_id: 0
- #18
host_id: 0
supervisor_host_id: 0
- #19
host_id: 0
supervisor_host_id: 0
- #20
host_id: 0
supervisor_host_id: 0
- #21
host_id: 0
supervisor_host_id: 0
- #22
host_id: 0
supervisor_host_id: 0
- #23
host_id: 0
supervisor_host_id: 0
- #24
host_id: 0
supervisor_host_id: 0
- #25
host_id: 0
supervisor_host_id: 0
- #26
host_id: 0
supervisor_host_id: 0
- #27
host_id: 0
supervisor_host_id: 0
- #28
host_id: 0
supervisor_host_id: 0
- #29
host_id: 0
supervisor_host_id: 0
- #30
host_id: 0
supervisor_host_id: 0
- #31
host_id: 0
supervisor_host_id: 0
- #32
host_id: 0
supervisor_host_id: 0
otp_config:
subhdr:
magic: 0x4081
size: 69
write_host_id : 0
otp_entry:
- #1
host_id: 0
host_perms: 0
- #2
host_id: 0
host_perms: 0
- #3
host_id: 0
host_perms: 0
- #4
host_id: 0
host_perms: 0
- #5
host_id: 0
host_perms: 0
- #6
host_id: 0
host_perms: 0
- #7
host_id: 0
host_perms: 0
- #8
host_id: 0
host_perms: 0
- #9
host_id: 0
host_perms: 0
- #10
host_id: 0
host_perms: 0
- #11
host_id: 0
host_perms: 0
- #12
host_id: 0
host_perms: 0
- #13
host_id: 0
host_perms: 0
- #14
host_id: 0
host_perms: 0
- #15
host_id: 0
host_perms: 0
- #16
host_id: 0
host_perms: 0
- #17
host_id: 0
host_perms: 0
- #18
host_id: 0
host_perms: 0
- #19
host_id: 0
host_perms: 0
- #20
host_id: 0
host_perms: 0
- #21
host_id: 0
host_perms: 0
- #22
host_id: 0
host_perms: 0
- #23
host_id: 0
host_perms: 0
- #24
host_id: 0
host_perms: 0
- #25
host_id: 0
host_perms: 0
- #26
host_id: 0
host_perms: 0
- #27
host_id: 0
host_perms: 0
- #28
host_id: 0
host_perms: 0
- #29
host_id: 0
host_perms: 0
- #30
host_id: 0
host_perms: 0
- #31
host_id: 0
host_perms: 0
- #32
host_id: 0
host_perms: 0
dkek_config:
subhdr:
magic: 0x5170
size: 12
allowed_hosts: [128, 0, 0, 0]
allow_dkek_export_tisci : 0x5A
rsvd: [0, 0, 0]
sa2ul_cfg:
subhdr:
magic: 0x23BE
size : 0
auth_resource_owner: 0
enable_saul_psil_global_config_writes: 0x5A
rsvd: [0, 0]
sec_dbg_config:
subhdr:
magic: 0x42AF
size: 16
allow_jtag_unlock : 0x5A
allow_wildcard_unlock : 0x5A
allowed_debug_level_rsvd: 0
rsvd: 0
min_cert_rev : 0x0
jtag_unlock_hosts: [0, 0, 0, 0]
sec_handover_cfg:
subhdr:
magic: 0x608F
size: 10
handover_msg_sender : 0
handover_to_host_id : 0
rsvd: [0, 0, 0, 0]

View file

@ -6,10 +6,3 @@ F: board/ti/am62x/
F: include/configs/am62x_evm.h F: include/configs/am62x_evm.h
F: configs/am62x_evm_r5_defconfig F: configs/am62x_evm_r5_defconfig
F: configs/am62x_evm_a53_defconfig F: configs/am62x_evm_a53_defconfig
BEAGLEPLAY BOARD
M: Nishanth Menon <nm@ti.com>
M: Robert Nelson <robertcnelson@gmail.com>
M: Tom Rini <trini@konsulko.com>
S: Maintained
N: beagleplay

View file

@ -7,8 +7,7 @@ CONFIG_SPL_LIBGENERIC_SUPPORT=y
CONFIG_NR_DRAM_BANKS=2 CONFIG_NR_DRAM_BANKS=2
CONFIG_SOC_K3_AM625=y CONFIG_SOC_K3_AM625=y
CONFIG_K3_ATF_LOAD_ADDR=0x9e780000 CONFIG_K3_ATF_LOAD_ADDR=0x9e780000
CONFIG_TARGET_AM625_A53_EVM=y CONFIG_TARGET_AM625_A53_BEAGLEPLAY=y
CONFIG_ENV_SOURCE_FILE="beagleplay"
CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80b80000 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80b80000
CONFIG_DM_GPIO=y CONFIG_DM_GPIO=y

View file

@ -6,7 +6,7 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y
CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
CONFIG_NR_DRAM_BANKS=2 CONFIG_NR_DRAM_BANKS=2
CONFIG_SOC_K3_AM625=y CONFIG_SOC_K3_AM625=y
CONFIG_TARGET_AM625_R5_EVM=y CONFIG_TARGET_AM625_R5_BEAGLEPLAY=y
CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x43c3a7f0 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x43c3a7f0
CONFIG_ENV_SIZE=0x20000 CONFIG_ENV_SIZE=0x20000
@ -36,7 +36,6 @@ CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
CONFIG_SPL_BSS_START_ADDR=0x43c3b000 CONFIG_SPL_BSS_START_ADDR=0x43c3b000
CONFIG_SPL_BSS_MAX_SIZE=0x3000 CONFIG_SPL_BSS_MAX_SIZE=0x3000
CONFIG_SPL_SYS_REPORT_STACK_F_USAGE=y CONFIG_SPL_SYS_REPORT_STACK_F_USAGE=y
CONFIG_SPL_BOARD_INIT=y
CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_SYS_MALLOC_SIMPLE=y
CONFIG_SPL_STACK_R=y CONFIG_SPL_STACK_R=y
CONFIG_SPL_SEPARATE_BSS=y CONFIG_SPL_SEPARATE_BSS=y