mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
arm: mach-k3: Move code specific to a SoC into that SoC's directory
Each SoC now has a directory in mach-k3, let's move the SoC specific files into their respective directories. Signed-off-by: Andrew Davis <afd@ti.com>
This commit is contained in:
@@ -6,24 +6,12 @@
|
||||
obj-$(CONFIG_ARM64) += arm64/
|
||||
obj-$(CONFIG_CPU_V7R) += r5/
|
||||
obj-$(CONFIG_OF_LIBFDT) += common_fdt.o
|
||||
ifeq ($(CONFIG_OF_LIBFDT)$(CONFIG_OF_SYSTEM_SETUP),yy)
|
||||
obj-$(CONFIG_SOC_K3_AM654) += am654_fdt.o
|
||||
obj-$(CONFIG_SOC_K3_J721E) += j721e_fdt.o
|
||||
obj-$(CONFIG_SOC_K3_J721S2) += j721s2_fdt.o
|
||||
obj-$(CONFIG_SOC_K3_AM625) += am625_fdt.o
|
||||
obj-$(CONFIG_SOC_K3_AM62A7) += am62a7_fdt.o
|
||||
obj-$(CONFIG_SOC_K3_J784S4) += j784s4_fdt.o
|
||||
endif
|
||||
ifeq ($(CONFIG_SPL_BUILD),y)
|
||||
obj-$(CONFIG_SOC_K3_AM654) += am654_init.o
|
||||
obj-$(CONFIG_SOC_K3_J721E) += j721e_init.o
|
||||
obj-$(CONFIG_SOC_K3_J721S2) += j721s2_init.o
|
||||
obj-$(CONFIG_SOC_K3_AM642) += am642_init.o
|
||||
obj-$(CONFIG_SOC_K3_AM625) += am625_init.o
|
||||
obj-$(CONFIG_SOC_K3_AM62A7) += am62a7_init.o
|
||||
obj-$(CONFIG_SOC_K3_J784S4) += j784s4_init.o
|
||||
obj-$(CONFIG_SOC_K3_AM62P5) += am62p5_init.o
|
||||
endif
|
||||
obj-y += common.o security.o
|
||||
obj-$(CONFIG_SOC_K3_AM62A7) += am62ax/
|
||||
obj-$(CONFIG_SOC_K3_AM62P5) += am62px/
|
||||
obj-$(CONFIG_SOC_K3_AM625) += am62x/
|
||||
obj-$(CONFIG_SOC_K3_AM642) += am64x/
|
||||
obj-$(CONFIG_SOC_K3_AM654) += am65x/
|
||||
obj-$(CONFIG_SOC_K3_J721E) += j721e/
|
||||
obj-$(CONFIG_SOC_K3_J721S2) += j721s2/
|
||||
obj-$(CONFIG_SOC_K3_J784S4) += j784s4/
|
||||
|
||||
7
arch/arm/mach-k3/am62ax/Makefile
Normal file
7
arch/arm/mach-k3/am62ax/Makefile
Normal file
@@ -0,0 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
# Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
|
||||
# Andrew Davis <afd@ti.com>
|
||||
|
||||
obj-$(CONFIG_OF_SYSTEM_SETUP) += am62a7_fdt.o
|
||||
obj-$(CONFIG_SPL_BUILD) += am62a7_init.o
|
||||
@@ -4,9 +4,10 @@
|
||||
*/
|
||||
|
||||
#include <asm/hardware.h>
|
||||
#include "common_fdt.h"
|
||||
#include <fdt_support.h>
|
||||
|
||||
#include "../common_fdt.h"
|
||||
|
||||
int ft_system_setup(void *blob, struct bd_info *bd)
|
||||
{
|
||||
fdt_fixup_reserved(blob, "tfa", CONFIG_K3_ATF_LOAD_ADDR, 0x80000);
|
||||
@@ -8,12 +8,13 @@
|
||||
#include <spl.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include "sysfw-loader.h"
|
||||
#include "common.h"
|
||||
#include <dm.h>
|
||||
#include <dm/uclass-internal.h>
|
||||
#include <dm/pinctrl.h>
|
||||
|
||||
#include "../sysfw-loader.h"
|
||||
#include "../common.h"
|
||||
|
||||
struct fwl_data cbass_main_fwls[] = {
|
||||
{ "FSS_DAT_REG3", 7, 8 },
|
||||
};
|
||||
6
arch/arm/mach-k3/am62px/Makefile
Normal file
6
arch/arm/mach-k3/am62px/Makefile
Normal file
@@ -0,0 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
# Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
|
||||
# Andrew Davis <afd@ti.com>
|
||||
|
||||
obj-$(CONFIG_SPL_BUILD) += am62p5_init.o
|
||||
@@ -8,12 +8,13 @@
|
||||
#include <spl.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include "sysfw-loader.h"
|
||||
#include "common.h"
|
||||
#include <dm.h>
|
||||
#include <dm/uclass-internal.h>
|
||||
#include <dm/pinctrl.h>
|
||||
|
||||
#include "../sysfw-loader.h"
|
||||
#include "../common.h"
|
||||
|
||||
struct fwl_data cbass_main_fwls[] = {
|
||||
{ "FSS_DAT_REG3", 7, 8 },
|
||||
};
|
||||
@@ -1,2 +1,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
obj-$(CONFIG_OF_SYSTEM_SETUP) += am625_fdt.o
|
||||
obj-$(CONFIG_SPL_BUILD) += am625_init.o
|
||||
obj-y += boot.o
|
||||
|
||||
@@ -4,9 +4,10 @@
|
||||
*/
|
||||
|
||||
#include <asm/hardware.h>
|
||||
#include "common_fdt.h"
|
||||
#include <fdt_support.h>
|
||||
|
||||
#include "../common_fdt.h"
|
||||
|
||||
static void fdt_fixup_cores_nodes_am625(void *blob, int core_nr)
|
||||
{
|
||||
char node_path[32];
|
||||
@@ -9,13 +9,14 @@
|
||||
#include <spl.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include "sysfw-loader.h"
|
||||
#include "common.h"
|
||||
#include <dm.h>
|
||||
#include <dm/uclass-internal.h>
|
||||
#include <dm/pinctrl.h>
|
||||
#include <dm/ofnode.h>
|
||||
|
||||
#include "../sysfw-loader.h"
|
||||
#include "../common.h"
|
||||
|
||||
#define RTC_BASE_ADDRESS 0x2b1f0000
|
||||
#define REG_K3RTC_S_CNT_LSW (RTC_BASE_ADDRESS + 0x18)
|
||||
#define REG_K3RTC_KICK0 (RTC_BASE_ADDRESS + 0x70)
|
||||
@@ -1,2 +1,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
obj-$(CONFIG_SPL_BUILD) += am642_init.o
|
||||
obj-y += boot.o
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
#include <spl.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include "sysfw-loader.h"
|
||||
#include "common.h"
|
||||
#include <linux/soc/ti/ti_sci_protocol.h>
|
||||
#include <dm.h>
|
||||
#include <dm/uclass-internal.h>
|
||||
@@ -21,6 +19,9 @@
|
||||
#include <dm/root.h>
|
||||
#include <command.h>
|
||||
|
||||
#include "../sysfw-loader.h"
|
||||
#include "../common.h"
|
||||
|
||||
#define CTRLMMR_MCU_RST_CTRL 0x04518170
|
||||
|
||||
#define CTRLMMR_MCU_RST_SRC (MCU_CTRL_MMR0_BASE + 0x18178)
|
||||
7
arch/arm/mach-k3/am65x/Makefile
Normal file
7
arch/arm/mach-k3/am65x/Makefile
Normal file
@@ -0,0 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
# Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
|
||||
# Andrew Davis <afd@ti.com>
|
||||
|
||||
obj-$(CONFIG_OF_SYSTEM_SETUP) += am654_fdt.o
|
||||
obj-$(CONFIG_SPL_BUILD) += am654_init.o
|
||||
@@ -3,9 +3,10 @@
|
||||
* Copyright 2023 Toradex - https://www.toradex.com/
|
||||
*/
|
||||
|
||||
#include "common_fdt.h"
|
||||
#include <fdt_support.h>
|
||||
|
||||
#include "../common_fdt.h"
|
||||
|
||||
int ft_system_setup(void *blob, struct bd_info *bd)
|
||||
{
|
||||
return fdt_fixup_msmc_ram_k3(blob);
|
||||
@@ -12,8 +12,6 @@
|
||||
#include <asm/io.h>
|
||||
#include <spl.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include "sysfw-loader.h"
|
||||
#include "common.h"
|
||||
#include <dm.h>
|
||||
#include <dm/uclass-internal.h>
|
||||
#include <dm/pinctrl.h>
|
||||
@@ -22,6 +20,9 @@
|
||||
#include <mmc.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../sysfw-loader.h"
|
||||
#include "../common.h"
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#ifdef CONFIG_K3_LOAD_SYSFW
|
||||
7
arch/arm/mach-k3/j721e/Makefile
Normal file
7
arch/arm/mach-k3/j721e/Makefile
Normal file
@@ -0,0 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
# Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
|
||||
# Andrew Davis <afd@ti.com>
|
||||
|
||||
obj-$(CONFIG_OF_SYSTEM_SETUP) += j721e_fdt.o
|
||||
obj-$(CONFIG_SPL_BUILD) += j721e_init.o
|
||||
@@ -3,9 +3,10 @@
|
||||
* Copyright 2023 Toradex - https://www.toradex.com/
|
||||
*/
|
||||
|
||||
#include "common_fdt.h"
|
||||
#include <fdt_support.h>
|
||||
|
||||
#include "../common_fdt.h"
|
||||
|
||||
int ft_system_setup(void *blob, struct bd_info *bd)
|
||||
{
|
||||
return fdt_fixup_msmc_ram_k3(blob);
|
||||
@@ -11,8 +11,6 @@
|
||||
#include <asm/io.h>
|
||||
#include <asm/armv7_mpu.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include "sysfw-loader.h"
|
||||
#include "common.h"
|
||||
#include <linux/soc/ti/ti_sci_protocol.h>
|
||||
#include <dm.h>
|
||||
#include <dm/uclass-internal.h>
|
||||
@@ -22,6 +20,9 @@
|
||||
#include <mmc.h>
|
||||
#include <remoteproc.h>
|
||||
|
||||
#include "../sysfw-loader.h"
|
||||
#include "../common.h"
|
||||
|
||||
#ifdef CONFIG_K3_LOAD_SYSFW
|
||||
struct fwl_data cbass_hc_cfg0_fwls[] = {
|
||||
#if defined(CONFIG_TARGET_J721E_R5_EVM)
|
||||
7
arch/arm/mach-k3/j721s2/Makefile
Normal file
7
arch/arm/mach-k3/j721s2/Makefile
Normal file
@@ -0,0 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
# Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
|
||||
# Andrew Davis <afd@ti.com>
|
||||
|
||||
obj-$(CONFIG_OF_SYSTEM_SETUP) += j721s2_fdt.o
|
||||
obj-$(CONFIG_SPL_BUILD) += j721s2_init.o
|
||||
@@ -3,9 +3,10 @@
|
||||
* Copyright 2023 Toradex - https://www.toradex.com/
|
||||
*/
|
||||
|
||||
#include "common_fdt.h"
|
||||
#include <fdt_support.h>
|
||||
|
||||
#include "../common_fdt.h"
|
||||
|
||||
int ft_system_setup(void *blob, struct bd_info *bd)
|
||||
{
|
||||
return fdt_fixup_msmc_ram_k3(blob);
|
||||
@@ -11,8 +11,6 @@
|
||||
#include <asm/io.h>
|
||||
#include <asm/armv7_mpu.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include "sysfw-loader.h"
|
||||
#include "common.h"
|
||||
#include <linux/soc/ti/ti_sci_protocol.h>
|
||||
#include <dm.h>
|
||||
#include <dm/uclass-internal.h>
|
||||
@@ -21,6 +19,9 @@
|
||||
#include <mmc.h>
|
||||
#include <remoteproc.h>
|
||||
|
||||
#include "../sysfw-loader.h"
|
||||
#include "../common.h"
|
||||
|
||||
struct fwl_data cbass_hc_cfg0_fwls[] = {
|
||||
{ "PCIE0_CFG", 2577, 7 },
|
||||
{ "EMMC8SS0_CFG", 2579, 4 },
|
||||
7
arch/arm/mach-k3/j784s4/Makefile
Normal file
7
arch/arm/mach-k3/j784s4/Makefile
Normal file
@@ -0,0 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
# Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
|
||||
# Andrew Davis <afd@ti.com>
|
||||
|
||||
obj-$(CONFIG_OF_SYSTEM_SETUP) += j784s4_fdt.o
|
||||
obj-$(CONFIG_SPL_BUILD) += j784s4_init.o
|
||||
@@ -6,9 +6,10 @@
|
||||
* Apurva Nandan <a-nandan@ti.com>
|
||||
*/
|
||||
|
||||
#include "common_fdt.h"
|
||||
#include <fdt_support.h>
|
||||
|
||||
#include "../common_fdt.h"
|
||||
|
||||
int ft_system_setup(void *blob, struct bd_info *bd)
|
||||
{
|
||||
return fdt_fixup_msmc_ram_k3(blob);
|
||||
@@ -11,8 +11,6 @@
|
||||
#include <asm/io.h>
|
||||
#include <asm/armv7_mpu.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include "sysfw-loader.h"
|
||||
#include "common.h"
|
||||
#include <linux/soc/ti/ti_sci_protocol.h>
|
||||
#include <dm.h>
|
||||
#include <dm/uclass-internal.h>
|
||||
@@ -20,6 +18,9 @@
|
||||
#include <mmc.h>
|
||||
#include <remoteproc.h>
|
||||
|
||||
#include "../sysfw-loader.h"
|
||||
#include "../common.h"
|
||||
|
||||
#define J784S4_MAX_DDR_CONTROLLERS 4
|
||||
|
||||
struct fwl_data infra_cbass0_fwls[] = {
|
||||
Reference in New Issue
Block a user