Browse Source

plat/arm: scp: Move to drivers/ folder

Change-Id: Ida5dae39478654405d0ee31a6cbddb4579e76a7f
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
pull/1784/head
Antonio Nino Diaz 6 years ago
parent
commit
2d4135e08f
  1. 3
      drivers/arm/css/scp/css_bom_bootloader.c
  2. 3
      drivers/arm/css/scp/css_pm_scmi.c
  3. 3
      drivers/arm/css/scp/css_pm_scpi.c
  4. 2
      drivers/arm/css/scp/css_sds.c
  5. 0
      include/drivers/arm/css/css_scp.h
  6. 3
      plat/arm/css/common/css_bl2_setup.c
  7. 3
      plat/arm/css/common/css_bl2u_setup.c
  8. 22
      plat/arm/css/common/css_common.mk
  9. 3
      plat/arm/css/common/css_pm.c
  10. 8
      plat/arm/css/common/sp_min/css_sp_min.mk

3
plat/arm/css/drivers/scp/css_bom_bootloader.c → drivers/arm/css/scp/css_bom_bootloader.c

@ -10,12 +10,11 @@
#include <arch_helpers.h>
#include <common/debug.h>
#include <drivers/arm/css/css_mhu.h>
#include <drivers/arm/css/css_scp.h>
#include <drivers/arm/css/css_scpi.h>
#include <plat/common/platform.h>
#include <platform_def.h>
#include "css_scp.h"
/* ID of the MHU slot used for the BOM protocol */
#define BOM_MHU_SLOT_ID 0

3
plat/arm/css/drivers/scp/css_pm_scmi.c → drivers/arm/css/scp/css_pm_scmi.c

@ -9,14 +9,13 @@
#include <arch_helpers.h>
#include <common/debug.h>
#include <drivers/arm/css/css_scp.h>
#include <drivers/arm/css/scmi.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/arm/css/common/css_pm.h>
#include <plat/common/platform.h>
#include <platform_def.h>
#include "css_scp.h"
/*
* This file implements the SCP helper functions using SCMI protocol.
*/

3
plat/arm/css/drivers/scp/css_pm_scpi.c → drivers/arm/css/scp/css_pm_scpi.c

@ -8,12 +8,11 @@
#include <arch_helpers.h>
#include <common/debug.h>
#include <drivers/arm/css/css_scp.h>
#include <drivers/arm/css/css_scpi.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/arm/css/common/css_pm.h>
#include "css_scp.h"
/*
* This file implements the SCP power management functions using SCPI protocol.
*/

2
plat/arm/css/drivers/scp/css_sds.c → drivers/arm/css/scp/css_sds.c

@ -9,11 +9,11 @@
#include <arch_helpers.h>
#include <common/debug.h>
#include <drivers/arm/css/css_scp.h>
#include <drivers/delay_timer.h>
#include <plat/common/platform.h>
#include <platform_def.h>
#include "css_scp.h"
#include "../sds/sds.h"
int css_scp_boot_image_xfer(void *image, unsigned int image_size)

0
plat/arm/css/drivers/scp/css_scp.h → include/drivers/arm/css/css_scp.h

3
plat/arm/css/common/css_bl2_setup.c

@ -8,13 +8,12 @@
#include <common/bl_common.h>
#include <common/debug.h>
#include <drivers/arm/css/css_scp.h>
#include <lib/mmio.h>
#include <lib/utils.h>
#include <plat/arm/common/plat_arm.h>
#include <platform_def.h>
#include "../drivers/scp/css_scp.h"
/* Weak definition may be overridden in specific CSS based platform */
#pragma weak plat_arm_bl2_handle_scp_bl2

3
plat/arm/css/common/css_bl2u_setup.c

@ -6,11 +6,10 @@
#include <common/bl_common.h>
#include <common/debug.h>
#include <drivers/arm/css/css_scp.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include "../drivers/scp/css_scp.h"
/* Weak definition may be overridden in specific CSS based platform */
#pragma weak bl2u_plat_handle_scp_bl2u

22
plat/arm/css/common/css_common.mk

@ -27,15 +27,15 @@ BL31_SOURCES += plat/arm/css/common/css_pm.c \
ifeq (${CSS_USE_SCMI_SDS_DRIVER},0)
BL31_SOURCES += drivers/arm/css/mhu/css_mhu.c \
drivers/arm/css/scpi/css_scpi.c \
plat/arm/css/drivers/scp/css_pm_scpi.c
drivers/arm/css/scp/css_pm_scpi.c \
drivers/arm/css/scpi/css_scpi.c
else
BL31_SOURCES += drivers/arm/css/mhu/css_mhu_doorbell.c \
drivers/arm/css/scmi/scmi_ap_core_proto.c \
drivers/arm/css/scmi/scmi_common.c \
drivers/arm/css/scmi/scmi_pwr_dmn_proto.c \
drivers/arm/css/scmi/scmi_sys_pwr_proto.c \
plat/arm/css/drivers/scp/css_pm_scmi.c
drivers/arm/css/scp/css_pm_scmi.c
endif
# Process CSS_LOAD_SCP_IMAGES flag
@ -49,19 +49,19 @@ ifeq (${CSS_LOAD_SCP_IMAGES},1)
endif
ifeq (${CSS_USE_SCMI_SDS_DRIVER},1)
BL2U_SOURCES += plat/arm/css/drivers/scp/css_sds.c \
BL2U_SOURCES += drivers/arm/css/scp/css_sds.c \
plat/arm/css/drivers/sds/sds.c
BL2_SOURCES += plat/arm/css/drivers/scp/css_sds.c \
BL2_SOURCES += drivers/arm/css/scp/css_sds.c \
plat/arm/css/drivers/sds/sds.c
else
BL2U_SOURCES += drivers/arm/css/mhu/css_mhu.c \
drivers/arm/css/scpi/css_scpi.c \
plat/arm/css/drivers/scp/css_bom_bootloader.c
BL2U_SOURCES += drivers/arm/css/mhu/css_mhu.c \
drivers/arm/css/scp/css_bom_bootloader.c \
drivers/arm/css/scpi/css_scpi.c
BL2_SOURCES += drivers/arm/css/mhu/css_mhu.c \
drivers/arm/css/scpi/css_scpi.c \
plat/arm/css/drivers/scp/css_bom_bootloader.c
BL2_SOURCES += drivers/arm/css/mhu/css_mhu.c \
drivers/arm/css/scp/css_bom_bootloader.c \
drivers/arm/css/scpi/css_scpi.c
# Enable option to detect whether the SCP ROM firmware in use predates version
# 1.7.0 and therefore, is incompatible.
CSS_DETECT_PRE_1_7_0_SCP := 1

3
plat/arm/css/common/css_pm.c

@ -11,13 +11,12 @@
#include <arch_helpers.h>
#include <common/debug.h>
#include <drivers/arm/css/css_scp.h>
#include <lib/cassert.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/arm/css/common/css_pm.h>
#include <plat/common/platform.h>
#include "../drivers/scp/css_scp.h"
/* Allow CSS platforms to override `plat_arm_psci_pm_ops` */
#pragma weak plat_arm_psci_pm_ops

8
plat/arm/css/common/sp_min/css_sp_min.mk

@ -10,12 +10,12 @@ BL32_SOURCES += plat/arm/css/common/css_pm.c \
ifeq (${CSS_USE_SCMI_SDS_DRIVER},0)
BL32_SOURCES += drivers/arm/css/mhu/css_mhu.c \
drivers/arm/css/scpi/css_scpi.c \
plat/arm/css/drivers/scp/css_pm_scpi.c
drivers/arm/css/scp/css_pm_scpi.c \
drivers/arm/css/scpi/css_scpi.c
else
BL32_SOURCES += drivers/arm/css/mhu/css_mhu_doorbell.c \
drivers/arm/css/scp/css_pm_scmi.c \
drivers/arm/css/scmi/scmi_common.c \
drivers/arm/css/scmi/scmi_pwr_dmn_proto.c \
drivers/arm/css/scmi/scmi_sys_pwr_proto.c \
plat/arm/css/drivers/scp/css_pm_scmi.c
drivers/arm/css/scmi/scmi_sys_pwr_proto.c
endif

Loading…
Cancel
Save