Commit 234bc7f8 authored by Antonio Nino Diaz's avatar Antonio Nino Diaz
Browse files

plat/arm: Fix header dependencies



From now on, platform_def.h must include any header with definitions that
are platform-specific (like arm_def.h) and the included headers mustn't
include back platform_def.h, and shouldn't be used by other files. Only
platform_def.h should be included in other files. This will ensure that all
needed definitions are present, rather than needing to include all the
headers in all the definitions' headers just in case.

This also prevents problems like cyclic dependencies.

Change-Id: I9d3cf4d1de4b956fa035c79545222697acdaf5ca
Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
parent fe77b53e
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
#include <common/debug.h> #include <common/debug.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/utils.h> #include <lib/utils.h>
#include <platform_def.h>
#include <css_def.h>
#include <plat_arm.h> #include <plat_arm.h>
#include "../drivers/scp/css_scp.h" #include "../drivers/scp/css_scp.h"
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include <lib/bakery_lock.h> #include <lib/bakery_lock.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <css_def.h>
#include <plat_arm.h> #include <plat_arm.h>
#include "css_mhu.h" #include "css_mhu.h"
......
...@@ -10,8 +10,7 @@ ...@@ -10,8 +10,7 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <common/debug.h> #include <common/debug.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <platform_def.h>
#include <css_def.h>
#include "../mhu/css_mhu.h" #include "../mhu/css_mhu.h"
#include "../scpi/css_scpi.h" #include "../scpi/css_scpi.h"
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <common/debug.h> #include <common/debug.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <platform_def.h>
#include <css_def.h>
#include <css_pm.h> #include <css_pm.h>
#include <plat_arm.h> #include <plat_arm.h>
......
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
#include <common/debug.h> #include <common/debug.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 <css_def.h>
#include "css_scp.h" #include "css_scp.h"
#include "../sds/sds.h" #include "../sds/sds.h"
......
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
#include <common/debug.h> #include <common/debug.h>
#include <lib/utils.h> #include <lib/utils.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <platform_def.h>
#include <css_def.h>
#include "../mhu/css_mhu.h" #include "../mhu/css_mhu.h"
#include "css_scpi.h" #include "css_scpi.h"
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <common/debug.h> #include <common/debug.h>
#include <platform_def.h>
#include <css_def.h>
#include "sds.h" #include "sds.h"
#include "sds_private.h" #include "sds_private.h"
......
...@@ -14,8 +14,6 @@ ...@@ -14,8 +14,6 @@
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <services/secure_partition.h> #include <services/secure_partition.h>
#include <arm_def.h>
#include <arm_spm_def.h>
#include <plat_arm.h> #include <plat_arm.h>
#include "../../../../bl1/bl1_private.h" #include "../../../../bl1/bl1_private.h"
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
#include <common/bl_common.h> #include <common/bl_common.h>
#include <common/debug.h> #include <common/debug.h>
#include <arm_def.h>
#include <plat_arm.h> #include <plat_arm.h>
#include <sgm_variant.h> #include <sgm_variant.h>
......
...@@ -9,9 +9,7 @@ ...@@ -9,9 +9,7 @@
#include <drivers/arm/nic_400.h> #include <drivers/arm/nic_400.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <board_css_def.h>
#include <soc_css.h> #include <soc_css.h>
#include <soc_css_def.h>
void soc_css_init_nic400(void) void soc_css_init_nic400(void)
{ {
......
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