"lib/history.zsh" did not exist on "e20401e04e057a39c228dbb99dda68ec7fa4235a"
Commit 01096cac authored by Mark Dykes's avatar Mark Dykes Committed by TrustedFirmware Code Review
Browse files

Merge changes from topic "tegra-downstream-07092020" into integration

* changes:
  Tegra: memctrl: remove unused TZRAM setup function
  Tegra: reorganize drivers and lib folders
parents b693fbf4 66e0b947
...@@ -247,12 +247,6 @@ void bl31_platform_setup(void) ...@@ -247,12 +247,6 @@ void bl31_platform_setup(void)
*/ */
tegra_memctrl_setup(); tegra_memctrl_setup();
/*
* Set up the TZRAM memory aperture to allow only secure world
* access
*/
tegra_memctrl_tzram_setup(TEGRA_TZRAM_BASE, TEGRA_TZRAM_SIZE);
/* /*
* Late setup handler to allow platforms to performs additional * Late setup handler to allow platforms to performs additional
* functionality. * functionality.
......
...@@ -12,37 +12,46 @@ PLAT_INCLUDES := -Iplat/nvidia/tegra/include/drivers \ ...@@ -12,37 +12,46 @@ PLAT_INCLUDES := -Iplat/nvidia/tegra/include/drivers \
include lib/xlat_tables_v2/xlat_tables.mk include lib/xlat_tables_v2/xlat_tables.mk
PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS} PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS}
COMMON_DIR := plat/nvidia/tegra/common TEGRA_COMMON := plat/nvidia/tegra/common
TEGRA_DRIVERS := plat/nvidia/tegra/drivers
TEGRA_LIBS := plat/nvidia/tegra/lib
# Include GICv3 driver files # Include GICv3 driver files
include drivers/arm/gic/v3/gicv3.mk include drivers/arm/gic/v3/gicv3.mk
TEGRA_GICv3_SOURCES := $(GICV3_SOURCES) \ TEGRA_GICv3_SOURCES := $(GICV3_SOURCES) \
plat/common/plat_gicv3.c \ plat/common/plat_gicv3.c \
${COMMON_DIR}/tegra_gicv3.c ${TEGRA_COMMON}/tegra_gicv3.c
# Include GICv2 driver files # Include GICv2 driver files
include drivers/arm/gic/v2/gicv2.mk include drivers/arm/gic/v2/gicv2.mk
TEGRA_GICv2_SOURCES := ${GICV2_SOURCES} \ TEGRA_GICv2_SOURCES := ${GICV2_SOURCES} \
plat/common/plat_gicv2.c \ plat/common/plat_gicv2.c \
${COMMON_DIR}/tegra_gicv2.c ${TEGRA_COMMON}/tegra_gicv2.c
TEGRA_GICv3_SOURCES := drivers/arm/gic/common/gic_common.c \
drivers/arm/gic/v3/arm_gicv3_common.c \
drivers/arm/gic/v3/gicv3_main.c \
drivers/arm/gic/v3/gicv3_helpers.c \
plat/common/plat_gicv3.c \
${TEGRA_COMMON}/tegra_gicv3.c
BL31_SOURCES += drivers/delay_timer/delay_timer.c \ BL31_SOURCES += drivers/delay_timer/delay_timer.c \
drivers/io/io_storage.c \ drivers/io/io_storage.c \
plat/common/aarch64/crash_console_helpers.S \ plat/common/aarch64/crash_console_helpers.S \
${TEGRA_GICv2_SOURCES} \ ${TEGRA_GICv2_SOURCES} \
${COMMON_DIR}/aarch64/tegra_helpers.S \ ${TEGRA_COMMON}/aarch64/tegra_helpers.S \
${COMMON_DIR}/lib/debug/profiler.c \ ${TEGRA_LIBS}/debug/profiler.c \
${COMMON_DIR}/tegra_bl31_setup.c \ ${TEGRA_COMMON}/tegra_bl31_setup.c \
${COMMON_DIR}/tegra_delay_timer.c \ ${TEGRA_COMMON}/tegra_delay_timer.c \
${COMMON_DIR}/tegra_ehf.c \ ${TEGRA_COMMON}/tegra_ehf.c \
${COMMON_DIR}/tegra_fiq_glue.c \ ${TEGRA_COMMON}/tegra_fiq_glue.c \
${COMMON_DIR}/tegra_io_storage.c \ ${TEGRA_COMMON}/tegra_io_storage.c \
${COMMON_DIR}/tegra_platform.c \ ${TEGRA_COMMON}/tegra_platform.c \
${COMMON_DIR}/tegra_pm.c \ ${TEGRA_COMMON}/tegra_pm.c \
${COMMON_DIR}/tegra_sip_calls.c \ ${TEGRA_COMMON}/tegra_sip_calls.c \
${COMMON_DIR}/tegra_sdei.c ${TEGRA_COMMON}/tegra_sdei.c
ifneq ($(ENABLE_STACK_PROTECTOR), 0) ifneq ($(ENABLE_STACK_PROTECTOR), 0)
BL31_SOURCES += ${COMMON_DIR}/tegra_stack_protector.c BL31_SOURCES += ${TEGRA_COMMON}/tegra_stack_protector.c
endif endif
...@@ -180,11 +180,6 @@ void tegra_pwr_domain_on_finish(const psci_power_state_t *target_state) ...@@ -180,11 +180,6 @@ void tegra_pwr_domain_on_finish(const psci_power_state_t *target_state)
tegra_memctrl_tzdram_setup(plat_params->tzdram_base, tegra_memctrl_tzdram_setup(plat_params->tzdram_base,
(uint32_t)plat_params->tzdram_size); (uint32_t)plat_params->tzdram_size);
/*
* Set up the TZRAM memory aperture to allow only secure world
* access
*/
tegra_memctrl_tzram_setup(TEGRA_TZRAM_BASE, TEGRA_TZRAM_SIZE);
} else { } else {
/* /*
* Initialize the GIC cpu and distributor interfaces * Initialize the GIC cpu and distributor interfaces
......
/* /*
* Copyright (c) 2015-2019, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2019, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -92,20 +93,6 @@ void tegra_memctrl_tzdram_setup(uint64_t phys_base, uint32_t size_in_bytes) ...@@ -92,20 +93,6 @@ void tegra_memctrl_tzdram_setup(uint64_t phys_base, uint32_t size_in_bytes)
tegra_mc_write_32(MC_SECURITY_CFG1_0, size_in_bytes >> 20); tegra_mc_write_32(MC_SECURITY_CFG1_0, size_in_bytes >> 20);
} }
/*
* Secure the BL31 TZRAM aperture.
*
* phys_base = physical base of TZRAM aperture
* size_in_bytes = size of aperture in bytes
*/
void tegra_memctrl_tzram_setup(uint64_t phys_base, uint32_t size_in_bytes)
{
/*
* The v1 hardware controller does not have any registers
* for setting up the on-chip TZRAM.
*/
}
static void tegra_clear_videomem(uintptr_t non_overlap_area_start, static void tegra_clear_videomem(uintptr_t non_overlap_area_start,
unsigned long long non_overlap_area_size) unsigned long long non_overlap_area_size)
{ {
......
/* /*
* Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -10,7 +11,6 @@ ...@@ -10,7 +11,6 @@
void tegra_memctrl_setup(void); void tegra_memctrl_setup(void);
void tegra_memctrl_restore_settings(void); void tegra_memctrl_restore_settings(void);
void tegra_memctrl_tzdram_setup(uint64_t phys_base, uint32_t size_in_bytes); void tegra_memctrl_tzdram_setup(uint64_t phys_base, uint32_t size_in_bytes);
void tegra_memctrl_tzram_setup(uint64_t phys_base, uint32_t size_in_bytes);
void tegra_memctrl_videomem_setup(uint64_t phys_base, uint32_t size_in_bytes); void tegra_memctrl_videomem_setup(uint64_t phys_base, uint32_t size_in_bytes);
void tegra_memctrl_disable_ahb_redirection(void); void tegra_memctrl_disable_ahb_redirection(void);
void tegra_memctrl_clear_pending_interrupts(void); void tegra_memctrl_clear_pending_interrupts(void);
......
...@@ -25,9 +25,9 @@ PLAT_INCLUDES += -Iplat/nvidia/tegra/include/t132 ...@@ -25,9 +25,9 @@ PLAT_INCLUDES += -Iplat/nvidia/tegra/include/t132
BL31_SOURCES += drivers/ti/uart/aarch64/16550_console.S \ BL31_SOURCES += drivers/ti/uart/aarch64/16550_console.S \
lib/cpus/aarch64/denver.S \ lib/cpus/aarch64/denver.S \
${COMMON_DIR}/drivers/flowctrl/flowctrl.c \ ${TEGRA_DRIVERS}/flowctrl/flowctrl.c \
${COMMON_DIR}/drivers/memctrl/memctrl_v1.c \ ${TEGRA_DRIVERS}/memctrl/memctrl_v1.c \
${COMMON_DIR}/drivers/pmc/pmc.c \ ${TEGRA_DRIVERS}/pmc/pmc.c \
${SOC_DIR}/plat_psci_handlers.c \ ${SOC_DIR}/plat_psci_handlers.c \
${SOC_DIR}/plat_sip_calls.c \ ${SOC_DIR}/plat_sip_calls.c \
${SOC_DIR}/plat_setup.c \ ${SOC_DIR}/plat_setup.c \
......
...@@ -43,11 +43,11 @@ PLAT_INCLUDES += -Iplat/nvidia/tegra/include/t186 \ ...@@ -43,11 +43,11 @@ PLAT_INCLUDES += -Iplat/nvidia/tegra/include/t186 \
BL31_SOURCES += drivers/ti/uart/aarch64/16550_console.S \ BL31_SOURCES += drivers/ti/uart/aarch64/16550_console.S \
lib/cpus/aarch64/denver.S \ lib/cpus/aarch64/denver.S \
lib/cpus/aarch64/cortex_a57.S \ lib/cpus/aarch64/cortex_a57.S \
${COMMON_DIR}/drivers/bpmp_ipc/intf.c \ ${TEGRA_DRIVERS}/bpmp_ipc/intf.c \
${COMMON_DIR}/drivers/bpmp_ipc/ivc.c \ ${TEGRA_DRIVERS}/bpmp_ipc/ivc.c \
${COMMON_DIR}/drivers/gpcdma/gpcdma.c \ ${TEGRA_DRIVERS}/gpcdma/gpcdma.c \
${COMMON_DIR}/drivers/memctrl/memctrl_v2.c \ ${TEGRA_DRIVERS}/memctrl/memctrl_v2.c \
${COMMON_DIR}/drivers/smmu/smmu.c \ ${TEGRA_DRIVERS}/smmu/smmu.c \
${SOC_DIR}/drivers/mce/mce.c \ ${SOC_DIR}/drivers/mce/mce.c \
${SOC_DIR}/drivers/mce/ari.c \ ${SOC_DIR}/drivers/mce/ari.c \
${SOC_DIR}/drivers/mce/nvg.c \ ${SOC_DIR}/drivers/mce/nvg.c \
......
...@@ -40,11 +40,10 @@ PLAT_INCLUDES += -Iplat/nvidia/tegra/include/t194 \ ...@@ -40,11 +40,10 @@ PLAT_INCLUDES += -Iplat/nvidia/tegra/include/t194 \
BL31_SOURCES += drivers/ti/uart/aarch64/16550_console.S \ BL31_SOURCES += drivers/ti/uart/aarch64/16550_console.S \
lib/cpus/aarch64/denver.S \ lib/cpus/aarch64/denver.S \
${COMMON_DIR}/drivers/bpmp_ipc/intf.c \ ${TEGRA_DRIVERS}/bpmp_ipc/intf.c \
${COMMON_DIR}/drivers/bpmp_ipc/ivc.c \ ${TEGRA_DRIVERS}/bpmp_ipc/ivc.c \
${COMMON_DIR}/drivers/gpcdma/gpcdma.c \ ${TEGRA_DRIVERS}/memctrl/memctrl_v2.c \
${COMMON_DIR}/drivers/memctrl/memctrl_v2.c \ ${TEGRA_DRIVERS}/smmu/smmu.c \
${COMMON_DIR}/drivers/smmu/smmu.c \
${SOC_DIR}/drivers/mce/mce.c \ ${SOC_DIR}/drivers/mce/mce.c \
${SOC_DIR}/drivers/mce/nvg.c \ ${SOC_DIR}/drivers/mce/nvg.c \
${SOC_DIR}/drivers/mce/aarch64/nvg_helpers.S \ ${SOC_DIR}/drivers/mce/aarch64/nvg_helpers.S \
...@@ -57,8 +56,12 @@ BL31_SOURCES += drivers/ti/uart/aarch64/16550_console.S \ ...@@ -57,8 +56,12 @@ BL31_SOURCES += drivers/ti/uart/aarch64/16550_console.S \
${SOC_DIR}/plat_smmu.c \ ${SOC_DIR}/plat_smmu.c \
${SOC_DIR}/plat_trampoline.S ${SOC_DIR}/plat_trampoline.S
ifeq (${USE_GPC_DMA}, 1)
BL31_SOURCES += ${TEGRA_DRIVERS}/gpcdma/gpcdma.c
endif
ifeq (${ENABLE_CONSOLE_SPE},1) ifeq (${ENABLE_CONSOLE_SPE},1)
BL31_SOURCES += ${COMMON_DIR}/drivers/spe/shared_console.S BL31_SOURCES += ${TEGRA_DRIVERS}/spe/shared_console.S
endif endif
# RAS sources # RAS sources
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment