diff --git a/drivers/arm/css/scp/css_sds.c b/drivers/arm/css/scp/css_sds.c index 2bfe75011f66d383a3c24c91e7ad8efc0a696087..e42ee10d759b6c93372dfffd7830b5c4532e3b7f 100644 --- a/drivers/arm/css/scp/css_sds.c +++ b/drivers/arm/css/scp/css_sds.c @@ -10,12 +10,11 @@ #include <arch_helpers.h> #include <common/debug.h> #include <drivers/arm/css/css_scp.h> +#include <drivers/arm/css/sds.h> #include <drivers/delay_timer.h> #include <plat/common/platform.h> #include <platform_def.h> -#include "../sds/sds.h" - int css_scp_boot_image_xfer(void *image, unsigned int image_size) { int ret; diff --git a/plat/arm/css/drivers/sds/aarch32/sds_helpers.S b/drivers/arm/css/sds/aarch32/sds_helpers.S similarity index 97% rename from plat/arm/css/drivers/sds/aarch32/sds_helpers.S rename to drivers/arm/css/sds/aarch32/sds_helpers.S index f68cb35f1ef882672eeb3176205f10f6b9fab7de..13ff0e186b47fb43a2f86deeecff637cb3a4ee1e 100644 --- a/plat/arm/css/drivers/sds/aarch32/sds_helpers.S +++ b/drivers/arm/css/sds/aarch32/sds_helpers.S @@ -6,8 +6,9 @@ #include <arch.h> #include <asm_macros.S> +#include <drivers/arm/css/sds.h> #include <platform_def.h> -#include "../sds.h" + #include "../sds_private.h" .globl sds_get_primary_cpu_id diff --git a/plat/arm/css/drivers/sds/aarch64/sds_helpers.S b/drivers/arm/css/sds/aarch64/sds_helpers.S similarity index 97% rename from plat/arm/css/drivers/sds/aarch64/sds_helpers.S rename to drivers/arm/css/sds/aarch64/sds_helpers.S index 3b9c562d0b211cb2254a49416035027177da20f4..3256c2b54d7e642262af8c4f0975d2280d2ccab6 100644 --- a/plat/arm/css/drivers/sds/aarch64/sds_helpers.S +++ b/drivers/arm/css/sds/aarch64/sds_helpers.S @@ -6,8 +6,9 @@ #include <arch.h> #include <asm_macros.S> +#include <drivers/arm/css/sds.h> #include <platform_def.h> -#include "../sds.h" + #include "../sds_private.h" .globl sds_get_primary_cpu_id diff --git a/plat/arm/css/drivers/sds/sds.c b/drivers/arm/css/sds/sds.c similarity index 99% rename from plat/arm/css/drivers/sds/sds.c rename to drivers/arm/css/sds/sds.c index eb2f48ef74c68bd4fb80a8f6353d72e8ea81ae52..1fb196c708274511bead6aead37f84b48b013b0d 100644 --- a/plat/arm/css/drivers/sds/sds.c +++ b/drivers/arm/css/sds/sds.c @@ -10,9 +10,9 @@ #include <arch_helpers.h> #include <common/debug.h> +#include <drivers/arm/css/sds.h> #include <platform_def.h> -#include "sds.h" #include "sds_private.h" /* diff --git a/plat/arm/css/drivers/sds/sds_private.h b/drivers/arm/css/sds/sds_private.h similarity index 100% rename from plat/arm/css/drivers/sds/sds_private.h rename to drivers/arm/css/sds/sds_private.h diff --git a/plat/arm/css/drivers/sds/sds.h b/include/drivers/arm/css/sds.h similarity index 100% rename from plat/arm/css/drivers/sds/sds.h rename to include/drivers/arm/css/sds.h diff --git a/plat/arm/board/juno/juno_bl1_setup.c b/plat/arm/board/juno/juno_bl1_setup.c index f72dba181c1b1dc88858bfd46f78bba48ca8a1b0..f72a6ff1af2f5251cc4b6a475272de29267537d7 100644 --- a/plat/arm/board/juno/juno_bl1_setup.c +++ b/plat/arm/board/juno/juno_bl1_setup.c @@ -9,13 +9,12 @@ #include <common/bl_common.h> #include <common/debug.h> #include <common/tbbr/tbbr_img_def.h> +#include <drivers/arm/css/sds.h> #include <drivers/arm/sp805.h> #include <plat/arm/common/plat_arm.h> #include <plat/common/platform.h> #include <platform_def.h> -#include <sds.h> - void juno_reset_to_aarch32_state(void); static int is_watchdog_reset(void) diff --git a/plat/arm/board/juno/platform.mk b/plat/arm/board/juno/platform.mk index a0281af202916873798407ec40fe0d0c642b0343..6575811a669f23bfb83e99991fde93291186605e 100644 --- a/plat/arm/board/juno/platform.mk +++ b/plat/arm/board/juno/platform.mk @@ -26,8 +26,7 @@ endif # SCP during power management operations and for SCP RAM Firmware transfer. CSS_USE_SCMI_SDS_DRIVER := 1 -PLAT_INCLUDES := -Iplat/arm/board/juno/include \ - -Iplat/arm/css/drivers/sds +PLAT_INCLUDES := -Iplat/arm/board/juno/include PLAT_BL_COMMON_SOURCES := plat/arm/board/juno/${ARCH}/juno_helpers.S \ plat/arm/board/juno/juno_common.c @@ -87,7 +86,7 @@ BL31_SOURCES += drivers/cfi/v2m/v2m_flash.c \ ${JUNO_SECURITY_SOURCES} ifeq (${CSS_USE_SCMI_SDS_DRIVER},1) -BL1_SOURCES += plat/arm/css/drivers/sds/sds.c +BL1_SOURCES += drivers/arm/css/sds/sds.c endif endif diff --git a/plat/arm/css/common/css_common.mk b/plat/arm/css/common/css_common.mk index fba9cdcee6d5c220bf991af91b4c81c0842910f1..2fbbe4560361b19643d4262389f3d605abee66be 100644 --- a/plat/arm/css/common/css_common.mk +++ b/plat/arm/css/common/css_common.mk @@ -50,10 +50,10 @@ ifeq (${CSS_LOAD_SCP_IMAGES},1) ifeq (${CSS_USE_SCMI_SDS_DRIVER},1) BL2U_SOURCES += drivers/arm/css/scp/css_sds.c \ - plat/arm/css/drivers/sds/sds.c + drivers/arm/css/sds/sds.c BL2_SOURCES += drivers/arm/css/scp/css_sds.c \ - plat/arm/css/drivers/sds/sds.c + drivers/arm/css/sds/sds.c else BL2U_SOURCES += drivers/arm/css/mhu/css_mhu.c \ drivers/arm/css/scp/css_bom_bootloader.c \ @@ -73,7 +73,7 @@ ifeq (${CSS_LOAD_SCP_IMAGES},1) endif ifeq (${CSS_USE_SCMI_SDS_DRIVER},1) - PLAT_BL_COMMON_SOURCES += plat/arm/css/drivers/sds/${ARCH}/sds_helpers.S + PLAT_BL_COMMON_SOURCES += drivers/arm/css/sds/${ARCH}/sds_helpers.S endif # Process CSS_USE_SCMI_SDS_DRIVER flag