diff --git a/plat/intel/soc/agilex/bl2_plat_setup.c b/plat/intel/soc/agilex/bl2_plat_setup.c index ece7b9c7009db21d234e502d1340cc1a0c949659..86b7ab88feea6acc9f6129ff99de54174eb2e7ba 100644 --- a/plat/intel/soc/agilex/bl2_plat_setup.c +++ b/plat/intel/soc/agilex/bl2_plat_setup.c @@ -14,14 +14,12 @@ #include <drivers/synopsys/dw_mmc.h> #include <drivers/ti/uart/uart_16550.h> #include <lib/xlat_tables/xlat_tables.h> -#include <platform_def.h> #include "agilex_clock_manager.h" #include "agilex_memory_controller.h" #include "agilex_pinmux.h" #include "agilex_reset_manager.h" #include "agilex_system_manager.h" - #include "ccu/ncore_ccu.h" #include "qspi/cadence_qspi.h" #include "socfpga_handoff.h" diff --git a/plat/intel/soc/agilex/bl31_plat_setup.c b/plat/intel/soc/agilex/bl31_plat_setup.c index e7852cfabccb0052a4e04c5ea424c7f72252f621..375483dd44ace4c37d8cab3ffc9a89d24e5f1ee3 100644 --- a/plat/intel/soc/agilex/bl31_plat_setup.c +++ b/plat/intel/soc/agilex/bl31_plat_setup.c @@ -12,7 +12,6 @@ #include <drivers/arm/gicv2.h> #include <drivers/ti/uart/uart_16550.h> #include <lib/xlat_tables/xlat_tables.h> -#include <platform_def.h> static entry_point_info_t bl32_image_ep_info; @@ -104,7 +103,7 @@ const mmap_region_t plat_agilex_mmap[] = { MT_DEVICE | MT_RW | MT_SECURE), MAP_REGION_FLAT(MEM64_BASE, MEM64_SIZE, MT_DEVICE | MT_RW | MT_NS), MAP_REGION_FLAT(DEVICE4_BASE, DEVICE4_SIZE, MT_DEVICE | MT_RW | MT_NS), - {0}, + {0} }; /******************************************************************************* @@ -126,7 +125,7 @@ void bl31_plat_arch_setup(void) BL_COHERENT_RAM_END - BL_COHERENT_RAM_BASE, MT_DEVICE | MT_RW | MT_SECURE), #endif - {0}, + {0} }; setup_page_tables(bl_regions, plat_agilex_mmap); diff --git a/plat/intel/soc/agilex/platform.mk b/plat/intel/soc/agilex/platform.mk index dc56ac8baf0141085b5f3426efc8de9ca427ef4a..ef02a8dfbad6f89c4ea31e741b9382f3840c73ef 100644 --- a/plat/intel/soc/agilex/platform.mk +++ b/plat/intel/soc/agilex/platform.mk @@ -4,7 +4,7 @@ # # SPDX-License-Identifier: BSD-3-Clause # -# + PLAT_INCLUDES := \ -Iplat/intel/soc/agilex/include/ \ -Iplat/intel/soc/common/drivers/ \ @@ -25,28 +25,26 @@ PLAT_BL_COMMON_SOURCES := \ BL2_SOURCES += \ common/desc_image_load.c \ - drivers/partition/partition.c \ - drivers/partition/gpt.c \ - drivers/arm/pl061/pl061_gpio.c \ drivers/mmc/mmc.c \ - drivers/synopsys/emmc/dw_mmc.c \ + drivers/intel/soc/stratix10/io/s10_memmap_qspi.c \ drivers/io/io_storage.c \ drivers/io/io_block.c \ drivers/io/io_fip.c \ - drivers/gpio/gpio.c \ - drivers/intel/soc/stratix10/io/s10_memmap_qspi.c \ + drivers/partition/partition.c \ + drivers/partition/gpt.c \ + drivers/synopsys/emmc/dw_mmc.c \ lib/cpus/aarch64/cortex_a53.S \ plat/intel/soc/agilex/bl2_plat_setup.c \ - plat/intel/soc/common/socfpga_storage.c \ - plat/intel/soc/common/bl2_plat_mem_params_desc.c \ - plat/intel/soc/agilex/soc/agilex_reset_manager.c \ plat/intel/soc/agilex/soc/agilex_clock_manager.c \ - plat/intel/soc/agilex/soc/agilex_pinmux.c \ plat/intel/soc/agilex/soc/agilex_memory_controller.c \ - plat/intel/soc/common/soc/socfpga_handoff.c \ + plat/intel/soc/agilex/soc/agilex_pinmux.c \ + plat/intel/soc/agilex/soc/agilex_reset_manager.c \ + plat/intel/soc/agilex/soc/agilex_system_manager.c \ + plat/intel/soc/common/bl2_plat_mem_params_desc.c \ plat/intel/soc/common/socfpga_delay_timer.c \ plat/intel/soc/common/socfpga_image_load.c \ - plat/intel/soc/agilex/soc/agilex_system_manager.c \ + plat/intel/soc/common/socfpga_storage.c \ + plat/intel/soc/common/soc/socfpga_handoff.c \ plat/intel/soc/common/soc/socfpga_mailbox.c \ plat/intel/soc/common/drivers/qspi/cadence_qspi.c \ plat/intel/soc/common/drivers/wdt/watchdog.c \ @@ -54,18 +52,14 @@ BL2_SOURCES += \ BL31_SOURCES += \ drivers/arm/cci/cci.c \ - lib/cpus/aarch64/cortex_a53.S \ lib/cpus/aarch64/aem_generic.S \ + lib/cpus/aarch64/cortex_a53.S \ plat/common/plat_psci_common.c \ - plat/intel/soc/common/socfpga_sip_svc.c \ plat/intel/soc/agilex/bl31_plat_setup.c \ plat/intel/soc/common/socfpga_psci.c \ + plat/intel/soc/common/socfpga_sip_svc.c \ plat/intel/soc/common/socfpga_topology.c \ - plat/intel/soc/common/socfpga_delay_timer.c \ - plat/intel/soc/agilex/soc/agilex_reset_manager.c \ - plat/intel/soc/agilex/soc/agilex_pinmux.c \ - plat/intel/soc/agilex/soc/agilex_clock_manager.c \ - plat/intel/soc/common/soc/socfpga_mailbox.c + plat/intel/soc/common/soc/socfpga_mailbox.c \ PROGRAMMABLE_RESET_ADDRESS := 0 BL2_AT_EL3 := 1 diff --git a/plat/intel/soc/common/drivers/ccu/ncore_ccu.c b/plat/intel/soc/common/drivers/ccu/ncore_ccu.c index ac8218ecd9627ef859b5cd6d630cd30e3199eb24..fce816b65539899ea1144071ce4cae57384a34b4 100644 --- a/plat/intel/soc/common/drivers/ccu/ncore_ccu.c +++ b/plat/intel/soc/common/drivers/ccu/ncore_ccu.c @@ -10,7 +10,6 @@ #include <lib/mmio.h> #include "ncore_ccu.h" -#include <platform_def.h> uint32_t poll_active_bit(uint32_t dir); diff --git a/plat/intel/soc/common/drivers/qspi/cadence_qspi.c b/plat/intel/soc/common/drivers/qspi/cadence_qspi.c index 0fd11ec78084cb0f5e5258870fde9e4eba4ff72e..d7cd71bec769b463f299d36654d344a617f16216 100644 --- a/plat/intel/soc/common/drivers/qspi/cadence_qspi.c +++ b/plat/intel/soc/common/drivers/qspi/cadence_qspi.c @@ -13,7 +13,6 @@ #include <drivers/console.h> #include "cadence_qspi.h" -#include <platform_def.h> #define LESS(a, b) (((a) < (b)) ? (a) : (b)) #define MORE(a, b) (((a) > (b)) ? (a) : (b)) diff --git a/plat/intel/soc/common/drivers/wdt/watchdog.c b/plat/intel/soc/common/drivers/wdt/watchdog.c index 0f89b4fd3b1e3f3cc546a7b73730759d04f2b910..651189b124435fe669954e66aaf0be99e8d02dcb 100644 --- a/plat/intel/soc/common/drivers/wdt/watchdog.c +++ b/plat/intel/soc/common/drivers/wdt/watchdog.c @@ -6,7 +6,6 @@ #include <common/debug.h> #include <lib/mmio.h> -#include <platform_def.h> #include "watchdog.h" diff --git a/plat/intel/soc/stratix10/bl2_plat_setup.c b/plat/intel/soc/stratix10/bl2_plat_setup.c index 7376b41438accf23a050f8442748218a3b30d865..85a60d651ca35cb3ea8ee76632036938f17402ae 100644 --- a/plat/intel/soc/stratix10/bl2_plat_setup.c +++ b/plat/intel/soc/stratix10/bl2_plat_setup.c @@ -1,36 +1,29 @@ /* * Copyright (c) 2019, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2019, Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <arch.h> #include <arch_helpers.h> -#include <drivers/arm/gicv2.h> - -#include <drivers/generic_delay_timer.h> -#include <drivers/console.h> -#include <drivers/ti/uart/uart_16550.h> #include <common/bl_common.h> #include <common/debug.h> #include <common/desc_image_load.h> -#include <errno.h> -#include <drivers/io/io_storage.h> -#include <common/image_decompress.h> -#include <plat/common/platform.h> -#include <platform_def.h> +#include <drivers/generic_delay_timer.h> #include <drivers/synopsys/dw_mmc.h> -#include <lib/mmio.h> +#include <drivers/ti/uart/uart_16550.h> #include <lib/xlat_tables/xlat_tables.h> -#include "s10_memory_controller.h" -#include "s10_reset_manager.h" -#include "s10_clock_manager.h" -#include "s10_pinmux.h" #include "qspi/cadence_qspi.h" #include "socfpga_handoff.h" #include "socfpga_mailbox.h" #include "socfpga_private.h" +#include "s10_clock_manager.h" +#include "s10_memory_controller.h" +#include "s10_pinmux.h" +#include "s10_reset_manager.h" +#include "s10_system_manager.h" #include "wdt/watchdog.h" diff --git a/plat/intel/soc/stratix10/bl31_plat_setup.c b/plat/intel/soc/stratix10/bl31_plat_setup.c index 9887cb1d5139953f8ab49f70ba81f7c8dbcf7cbd..a133f82cbd9ae2966d0023039b3d7384cf6fb2cf 100644 --- a/plat/intel/soc/stratix10/bl31_plat_setup.c +++ b/plat/intel/soc/stratix10/bl31_plat_setup.c @@ -1,21 +1,16 @@ /* * Copyright (c) 2019, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2019, Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ -#include <assert.h> #include <arch.h> #include <arch_helpers.h> +#include <assert.h> #include <common/bl_common.h> -#include <common/debug.h> -#include <drivers/console.h> -#include <drivers/delay_timer.h> -#include <drivers/arm/gic_common.h> #include <drivers/arm/gicv2.h> #include <drivers/ti/uart/uart_16550.h> -#include <drivers/generic_delay_timer.h> -#include <drivers/arm/gicv2.h> #include <lib/xlat_tables/xlat_tables.h> #include <lib/mmio.h> #include <plat/common/platform.h> diff --git a/plat/intel/soc/stratix10/platform.mk b/plat/intel/soc/stratix10/platform.mk index 5bf8f655565a799b9bdaaa63e974f1b61aa94a2e..e7251c42884959733ab4869b1c3a0de6d7cd6609 100644 --- a/plat/intel/soc/stratix10/platform.mk +++ b/plat/intel/soc/stratix10/platform.mk @@ -1,5 +1,6 @@ # # Copyright (c) 2019, ARM Limited and Contributors. All rights reserved. +# Copyright (c) 2019, Intel Corporation. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # @@ -10,60 +11,54 @@ PLAT_INCLUDES := \ -Iplat/intel/soc/common/include/ PLAT_BL_COMMON_SOURCES := \ - lib/xlat_tables/xlat_tables_common.c \ - lib/xlat_tables/aarch64/xlat_tables.c \ drivers/arm/gic/common/gic_common.c \ drivers/arm/gic/v2/gicv2_main.c \ drivers/arm/gic/v2/gicv2_helpers.c \ - plat/common/plat_gicv2.c \ drivers/delay_timer/delay_timer.c \ drivers/delay_timer/generic_delay_timer.c \ drivers/ti/uart/aarch64/16550_console.S \ + lib/xlat_tables/aarch64/xlat_tables.c \ + lib/xlat_tables/xlat_tables_common.c \ + plat/common/plat_gicv2.c \ plat/intel/soc/common/aarch64/platform_common.c \ plat/intel/soc/common/aarch64/plat_helpers.S BL2_SOURCES += \ - drivers/partition/partition.c \ - drivers/partition/gpt.c \ - drivers/arm/pl061/pl061_gpio.c \ + common/desc_image_load.c \ drivers/mmc/mmc.c \ - drivers/synopsys/emmc/dw_mmc.c \ + drivers/intel/soc/stratix10/io/s10_memmap_qspi.c \ drivers/io/io_storage.c \ drivers/io/io_block.c \ drivers/io/io_fip.c \ - drivers/gpio/gpio.c \ - drivers/intel/soc/stratix10/io/s10_memmap_qspi.c \ + drivers/partition/partition.c \ + drivers/partition/gpt.c \ + drivers/synopsys/emmc/dw_mmc.c \ + lib/cpus/aarch64/cortex_a53.S \ plat/intel/soc/stratix10/bl2_plat_setup.c \ - plat/intel/soc/common/socfpga_storage.c \ - plat/intel/soc/common/bl2_plat_mem_params_desc.c \ - plat/intel/soc/stratix10/soc/s10_reset_manager.c \ - plat/intel/soc/common/soc/socfpga_handoff.c \ plat/intel/soc/stratix10/soc/s10_clock_manager.c \ - plat/intel/soc/stratix10/soc/s10_pinmux.c \ plat/intel/soc/stratix10/soc/s10_memory_controller.c \ + plat/intel/soc/stratix10/soc/s10_pinmux.c \ + plat/intel/soc/stratix10/soc/s10_reset_manager.c \ + plat/intel/soc/stratix10/soc/s10_system_manager.c \ + plat/intel/soc/common/bl2_plat_mem_params_desc.c \ plat/intel/soc/common/socfpga_delay_timer.c \ - lib/cpus/aarch64/cortex_a53.S \ plat/intel/soc/common/socfpga_image_load.c \ - plat/intel/soc/stratix10/soc/s10_system_manager.c \ - common/desc_image_load.c \ + plat/intel/soc/common/socfpga_storage.c \ + plat/intel/soc/common/soc/socfpga_handoff.c \ plat/intel/soc/common/soc/socfpga_mailbox.c \ plat/intel/soc/common/drivers/qspi/cadence_qspi.c \ plat/intel/soc/common/drivers/wdt/watchdog.c -BL31_SOURCES += drivers/arm/cci/cci.c \ +BL31_SOURCES += \ + drivers/arm/cci/cci.c \ + lib/cpus/aarch64/aem_generic.S \ lib/cpus/aarch64/cortex_a53.S \ - lib/cpus/aarch64/aem_generic.S \ - lib/cpus/aarch64/cortex_a53.S \ - plat/common/plat_psci_common.c \ - plat/intel/soc/common/socfpga_sip_svc.c \ - plat/intel/soc/stratix10/bl31_plat_setup.c \ - plat/intel/soc/common/socfpga_psci.c \ - plat/intel/soc/common/socfpga_topology.c \ - plat/intel/soc/common/socfpga_delay_timer.c \ - plat/intel/soc/stratix10/soc/s10_reset_manager.c\ - plat/intel/soc/stratix10/soc/s10_pinmux.c \ - plat/intel/soc/stratix10/soc/s10_clock_manager.c\ - plat/intel/soc/common/soc/socfpga_mailbox.c + plat/common/plat_psci_common.c \ + plat/intel/soc/stratix10/bl31_plat_setup.c \ + plat/intel/soc/common/socfpga_psci.c \ + plat/intel/soc/common/socfpga_sip_svc.c \ + plat/intel/soc/common/socfpga_topology.c \ + plat/intel/soc/common/soc/socfpga_mailbox.c \ PROGRAMMABLE_RESET_ADDRESS := 0 BL2_AT_EL3 := 1