Unverified Commit 83a2285e authored by Antonio Niño Díaz's avatar Antonio Niño Díaz Committed by GitHub
Browse files

Merge pull request #1784 from antonio-nino-diaz-arm/an/includes-arm

plat/arm: Cleanup of includes and drivers
Showing with 30 additions and 40 deletions
+30 -40
...@@ -9,12 +9,10 @@ ...@@ -9,12 +9,10 @@
#include <platform_def.h> #include <platform_def.h>
#include <arch_helpers.h> #include <arch_helpers.h>
#include <drivers/arm/css/css_mhu.h>
#include <lib/bakery_lock.h> #include <lib/bakery_lock.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
#include "css_mhu.h"
/* SCP MHU secure channel registers */ /* SCP MHU secure channel registers */
#define SCP_INTR_S_STAT 0x200 #define SCP_INTR_S_STAT 0x200
......
...@@ -7,9 +7,8 @@ ...@@ -7,9 +7,8 @@
#include <platform_def.h> #include <platform_def.h>
#include <arch_helpers.h> #include <arch_helpers.h>
#include <drivers/arm/css/css_mhu_doorbell.h>
#include "css_mhu_doorbell.h" #include <drivers/arm/css/scmi.h>
#include "../scmi/scmi.h"
void mhu_ring_doorbell(struct scmi_channel_plat_info *plat_info) void mhu_ring_doorbell(struct scmi_channel_plat_info *plat_info)
{ {
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/css/scmi.h>
#include "scmi.h"
#include "scmi_private.h" #include "scmi_private.h"
/* /*
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/css/scmi.h>
#include "scmi.h"
#include "scmi_private.h" #include "scmi_private.h"
#if HW_ASSISTED_COHERENCY #if HW_ASSISTED_COHERENCY
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/css/scmi.h>
#include "scmi.h"
#include "scmi_private.h" #include "scmi_private.h"
/* /*
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/css/scmi.h>
#include "scmi.h"
#include "scmi_private.h" #include "scmi_private.h"
/* /*
......
...@@ -9,13 +9,12 @@ ...@@ -9,13 +9,12 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <common/debug.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 <plat/common/platform.h>
#include <platform_def.h> #include <platform_def.h>
#include "../mhu/css_mhu.h"
#include "../scpi/css_scpi.h"
#include "css_scp.h"
/* ID of the MHU slot used for the BOM protocol */ /* ID of the MHU slot used for the BOM protocol */
#define BOM_MHU_SLOT_ID 0 #define BOM_MHU_SLOT_ID 0
......
...@@ -9,15 +9,13 @@ ...@@ -9,15 +9,13 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <common/debug.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 <plat/common/platform.h>
#include <platform_def.h> #include <platform_def.h>
#include <css_pm.h>
#include <plat_arm.h>
#include "../scmi/scmi.h"
#include "css_scp.h"
/* /*
* This file implements the SCP helper functions using SCMI protocol. * This file implements the SCP helper functions using SCMI protocol.
*/ */
......
...@@ -8,12 +8,10 @@ ...@@ -8,12 +8,10 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/css/css_scp.h>
#include <css_pm.h> #include <drivers/arm/css/css_scpi.h>
#include <plat_arm.h> #include <plat/arm/common/plat_arm.h>
#include <plat/arm/css/common/css_pm.h>
#include "../scpi/css_scpi.h"
#include "css_scp.h"
/* /*
* This file implements the SCP power management functions using SCPI protocol. * This file implements the SCP power management functions using SCPI protocol.
......
...@@ -9,13 +9,12 @@ ...@@ -9,13 +9,12 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/css/css_scp.h>
#include <drivers/arm/css/sds.h>
#include <drivers/delay_timer.h> #include <drivers/delay_timer.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <platform_def.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) int css_scp_boot_image_xfer(void *image, unsigned int image_size)
{ {
int ret; int ret;
......
...@@ -9,13 +9,12 @@ ...@@ -9,13 +9,12 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/css/css_mhu.h>
#include <drivers/arm/css/css_scpi.h>
#include <lib/utils.h> #include <lib/utils.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <platform_def.h> #include <platform_def.h>
#include "../mhu/css_mhu.h"
#include "css_scpi.h"
#define SCPI_SHARED_MEM_SCP_TO_AP PLAT_CSS_SCP_COM_SHARED_MEM_BASE #define SCPI_SHARED_MEM_SCP_TO_AP PLAT_CSS_SCP_COM_SHARED_MEM_BASE
#define SCPI_SHARED_MEM_AP_TO_SCP (PLAT_CSS_SCP_COM_SHARED_MEM_BASE \ #define SCPI_SHARED_MEM_AP_TO_SCP (PLAT_CSS_SCP_COM_SHARED_MEM_BASE \
+ 0x100) + 0x100)
......
...@@ -6,8 +6,9 @@ ...@@ -6,8 +6,9 @@
#include <arch.h> #include <arch.h>
#include <asm_macros.S> #include <asm_macros.S>
#include <drivers/arm/css/sds.h>
#include <platform_def.h> #include <platform_def.h>
#include "../sds.h"
#include "../sds_private.h" #include "../sds_private.h"
.globl sds_get_primary_cpu_id .globl sds_get_primary_cpu_id
......
...@@ -6,8 +6,9 @@ ...@@ -6,8 +6,9 @@
#include <arch.h> #include <arch.h>
#include <asm_macros.S> #include <asm_macros.S>
#include <drivers/arm/css/sds.h>
#include <platform_def.h> #include <platform_def.h>
#include "../sds.h"
#include "../sds_private.h" #include "../sds_private.h"
.globl sds_get_primary_cpu_id .globl sds_get_primary_cpu_id
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/css/sds.h>
#include <platform_def.h> #include <platform_def.h>
#include "sds.h"
#include "sds_private.h" #include "sds_private.h"
/* /*
......
...@@ -4,14 +4,12 @@ ...@@ -4,14 +4,12 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <drivers/arm/fvp/fvp_pwrc.h>
#include <lib/bakery_lock.h> #include <lib/bakery_lock.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <plat/arm/common/plat_arm.h>
#include <platform_def.h> #include <platform_def.h>
#include <plat_arm.h>
#include "../../fvp_private.h"
#include "fvp_pwrc.h"
/* /*
* TODO: Someday there will be a generic power controller api. At the moment * TODO: Someday there will be a generic power controller api. At the moment
* each platform has its own pwrc so just exporting functions is fine. * each platform has its own pwrc so just exporting functions is fine.
......
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