Commit b5621874 authored by Carlo Caione's avatar Carlo Caione
Browse files

amlogic: Fix includes order


As part of the code refactoring fix the order of the include files
across all the source files.
Signed-off-by: default avatarCarlo Caione <ccaione@baylibre.com>
Change-Id: Ice72f687cc26ee881a9051168149467688100cfb
Showing with 19 additions and 25 deletions
+19 -25
...@@ -5,14 +5,12 @@ ...@@ -5,14 +5,12 @@
*/ */
#include <assert.h> #include <assert.h>
#include <platform_def.h>
#include <common/bl_common.h> #include <common/bl_common.h>
#include <common/interrupt_props.h> #include <common/interrupt_props.h>
#include <drivers/arm/gicv2.h> #include <drivers/arm/gicv2.h>
#include <lib/xlat_tables/xlat_mmu_helpers.h> #include <lib/xlat_tables/xlat_mmu_helpers.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <platform_def.h>
#include "aml_private.h" #include "aml_private.h"
......
...@@ -5,10 +5,6 @@ ...@@ -5,10 +5,6 @@
*/ */
#include <assert.h> #include <assert.h>
#include <stdint.h>
#include <platform_def.h>
#include <bl31/interrupt_mgmt.h> #include <bl31/interrupt_mgmt.h>
#include <common/bl_common.h> #include <common/bl_common.h>
#include <common/debug.h> #include <common/debug.h>
...@@ -16,6 +12,8 @@ ...@@ -16,6 +12,8 @@
#include <drivers/amlogic/meson_console.h> #include <drivers/amlogic/meson_console.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/xlat_tables/xlat_tables_v2.h> #include <lib/xlat_tables/xlat_tables_v2.h>
#include <platform_def.h>
#include <stdint.h>
/******************************************************************************* /*******************************************************************************
* Platform memory map regions * Platform memory map regions
...@@ -36,8 +34,8 @@ ...@@ -36,8 +34,8 @@
AML_SEC_DEVICE1_SIZE, \ AML_SEC_DEVICE1_SIZE, \
MT_DEVICE | MT_RW | MT_SECURE) MT_DEVICE | MT_RW | MT_SECURE)
#define MAP_TZRAM MAP_REGION_FLAT(AML_TZRAM_BASE, \ #define MAP_TZRAM MAP_REGION_FLAT(AML_TZRAM_BASE, \
AML_TZRAM_SIZE, \ AML_TZRAM_SIZE, \
MT_DEVICE | MT_RW | MT_SECURE) MT_DEVICE | MT_RW | MT_SECURE)
#define MAP_SEC_DEVICE2 MAP_REGION_FLAT(AML_SEC_DEVICE2_BASE, \ #define MAP_SEC_DEVICE2 MAP_REGION_FLAT(AML_SEC_DEVICE2_BASE, \
......
...@@ -4,18 +4,16 @@ ...@@ -4,18 +4,16 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <assert.h>
#include <errno.h>
#include <platform_def.h>
#include <arch_helpers.h> #include <arch_helpers.h>
#include <assert.h>
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/gicv2.h> #include <drivers/arm/gicv2.h>
#include <drivers/console.h> #include <drivers/console.h>
#include <errno.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/psci/psci.h> #include <lib/psci/psci.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <platform_def.h>
#include "aml_private.h" #include "aml_private.h"
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
#include <assert.h> #include <assert.h>
#include <common/bl_common.h> #include <common/bl_common.h>
#include <drivers/arm/gicv2.h>
#include <common/interrupt_props.h> #include <common/interrupt_props.h>
#include <plat/common/platform.h> #include <drivers/arm/gicv2.h>
#include <platform_def.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/xlat_tables/xlat_mmu_helpers.h> #include <lib/xlat_tables/xlat_mmu_helpers.h>
#include <plat/common/platform.h>
#include <platform_def.h>
#include "aml_private.h" #include "aml_private.h"
......
...@@ -5,15 +5,15 @@ ...@@ -5,15 +5,15 @@
*/ */
#include <assert.h> #include <assert.h>
#include <bl31/interrupt_mgmt.h>
#include <common/bl_common.h> #include <common/bl_common.h>
#include <common/debug.h> #include <common/debug.h>
#include <common/ep_info.h> #include <common/ep_info.h>
#include <bl31/interrupt_mgmt.h>
#include <meson_console.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/xlat_tables/xlat_tables_v2.h>
#include <meson_console.h>
#include <platform_def.h> #include <platform_def.h>
#include <stdint.h> #include <stdint.h>
#include <lib/xlat_tables/xlat_tables_v2.h>
/******************************************************************************* /*******************************************************************************
* Platform memory map regions * Platform memory map regions
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
AML_SEC_DEVICE1_SIZE, \ AML_SEC_DEVICE1_SIZE, \
MT_DEVICE | MT_RW | MT_SECURE) MT_DEVICE | MT_RW | MT_SECURE)
#define MAP_TZRAM MAP_REGION_FLAT(AML_TZRAM_BASE, \ #define MAP_TZRAM MAP_REGION_FLAT(AML_TZRAM_BASE, \
AML_TZRAM_SIZE, \ AML_TZRAM_SIZE, \
MT_DEVICE | MT_RW | MT_SECURE) MT_DEVICE | MT_RW | MT_SECURE)
#define MAP_SEC_DEVICE2 MAP_REGION_FLAT(AML_SEC_DEVICE2_BASE, \ #define MAP_SEC_DEVICE2 MAP_REGION_FLAT(AML_SEC_DEVICE2_BASE, \
......
...@@ -6,14 +6,14 @@ ...@@ -6,14 +6,14 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <assert.h> #include <assert.h>
#include <drivers/console.h>
#include <common/debug.h> #include <common/debug.h>
#include <errno.h>
#include <drivers/arm/gicv2.h> #include <drivers/arm/gicv2.h>
#include <drivers/console.h>
#include <errno.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/psci/psci.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <platform_def.h> #include <platform_def.h>
#include <lib/psci/psci.h>
#include "aml_private.h" #include "aml_private.h"
......
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