Fix order of remaining platform #includes
authorIsla Mitchell <isla.mitchell@arm.com>
Fri, 14 Jul 2017 09:46:32 +0000 (10:46 +0100)
committerIsla Mitchell <isla.mitchell@arm.com>
Fri, 14 Jul 2017 09:50:41 +0000 (10:50 +0100)
This fix modifies the order of system includes to meet the ARM TF coding
standard. There are some exceptions to this change in order to retain
header groupings and where there are headers within #if statements.

Change-Id: Ib5b668c992d817cc860e97b29e16ef106d17e404
Signed-off-by: Isla Mitchell <isla.mitchell@arm.com>
58 files changed:
plat/hisilicon/hikey/hisi_pwrc.c
plat/hisilicon/hikey/hisi_sip_svc.c
plat/hisilicon/hikey960/drivers/ipc/hisi_ipc.c
plat/hisilicon/hikey960/drivers/pwrc/hisi_pwrc.c
plat/hisilicon/hikey960/hikey960_bl1_setup.c
plat/hisilicon/hikey960/include/plat_macros.S
plat/mediatek/common/mtk_plat_common.c
plat/mediatek/mt6795/bl31_plat_setup.c
plat/mediatek/mt6795/drivers/timer/mt_cpuxgpt.c
plat/mediatek/mt6795/plat_pm.c
plat/mediatek/mt8173/drivers/mtcmos/mtcmos.c
plat/mediatek/mt8173/plat_sip_calls.c
plat/nvidia/tegra/common/aarch64/tegra_helpers.S
plat/nvidia/tegra/common/drivers/flowctrl/flowctrl.c
plat/nvidia/tegra/common/tegra_bl31_setup.c
plat/nvidia/tegra/common/tegra_gic.c
plat/nvidia/tegra/common/tegra_pm.c
plat/nvidia/tegra/common/tegra_sip_calls.c
plat/nvidia/tegra/soc/t132/plat_psci_handlers.c
plat/nvidia/tegra/soc/t132/plat_secondary.c
plat/nvidia/tegra/soc/t186/drivers/mce/ari.c
plat/nvidia/tegra/soc/t186/drivers/mce/nvg.c
plat/nvidia/tegra/soc/t210/plat_psci_handlers.c
plat/qemu/dt.c
plat/qemu/qemu_bl2_setup.c
plat/qemu/qemu_common.c
plat/qemu/qemu_pm.c
plat/qemu/topology.c
plat/rockchip/common/aarch64/platform_common.c
plat/rockchip/common/bl31_plat_setup.c
plat/rockchip/common/drivers/parameter/ddr_parameter.c
plat/rockchip/common/drivers/parameter/ddr_parameter.h
plat/rockchip/common/include/plat_private.h
plat/rockchip/common/params_setup.c
plat/rockchip/common/plat_pm.c
plat/rockchip/common/plat_topology.c
plat/rockchip/rk3328/drivers/pmu/pmu.c
plat/rockchip/rk3328/drivers/soc/soc.c
plat/rockchip/rk3368/drivers/ddr/ddr_rk3368.c
plat/rockchip/rk3368/drivers/pmu/pmu.c
plat/rockchip/rk3368/drivers/soc/soc.c
plat/rockchip/rk3399/drivers/dram/dfs.c
plat/rockchip/rk3399/drivers/dram/dram.c
plat/rockchip/rk3399/drivers/dram/dram_spec_timing.c
plat/rockchip/rk3399/drivers/dram/suspend.c
plat/rockchip/rk3399/drivers/gpio/rk3399_gpio.c
plat/rockchip/rk3399/drivers/pmu/m0_ctl.c
plat/rockchip/rk3399/drivers/pmu/pmu.c
plat/rockchip/rk3399/drivers/soc/soc.c
plat/rockchip/rk3399/plat_sip_calls.c
plat/xilinx/zynqmp/bl31_zynqmp_setup.c
plat/xilinx/zynqmp/plat_psci.c
plat/xilinx/zynqmp/pm_service/pm_api_sys.c
plat/xilinx/zynqmp/pm_service/pm_client.c
plat/xilinx/zynqmp/pm_service/pm_client.h
plat/xilinx/zynqmp/pm_service/pm_ipi.c
plat/xilinx/zynqmp/pm_service/pm_svc_main.c
plat/xilinx/zynqmp/tsp/tsp_plat_setup.c

index fcc9bd8977abb03fee73712bfcbefd3fcbb93473..ade408d44f5e2b3399c411f3ab61607c8cfd6398 100644 (file)
@@ -6,11 +6,13 @@
 
 #include <debug.h>
 #include <mmio.h>
+
+#include <hi6220_regs_acpu.h>
+#include <hi6220_regs_ao.h>
 #include <hisi_ipc.h>
 #include <hisi_pwrc.h>
 #include <hisi_sram_map.h>
-#include <hi6220_regs_acpu.h>
-#include <hi6220_regs_ao.h>
+
 #include <stdarg.h>
 #include <stdio.h>
 #include <string.h>
index 15953af099574764b6400899c730af29418ccfb2..b3109d611358c08b30fcc63e87f846e785ad6345 100644 (file)
@@ -4,8 +4,8 @@
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
-#include <hisi_sip_svc.h>
 #include <debug.h>
+#include <hisi_sip_svc.h>
 #include <pmf.h>
 #include <runtime_svc.h>
 #include <stdint.h>
index 8ce1e4ffa556bbe9d757453a2917566a5233a608..4c664d112797371933703cdd48323180639ac77a 100644 (file)
@@ -6,12 +6,12 @@
 
 #include <arch_helpers.h>
 #include <assert.h>
+#include <debug.h>
 #include <hi3660.h>
+#include <hisi_ipc.h>
 #include <mmio.h>
 #include <platform.h>
 #include <platform_def.h>
-#include <hisi_ipc.h>
-#include <debug.h>
 
 #include "../../hikey960_private.h"
 
index f82144a4e63116e46ae4606b3ea04f36f4059bb3..9fdc3e746192d4e345c8215f8dc10c8286d909e6 100644 (file)
@@ -4,13 +4,15 @@
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
+#include <../hikey960_def.h>
 #include <arch_helpers.h>
 #include <assert.h>
+#include <hisi_ipc.h>
 #include <mmio.h>
 #include <platform.h>
 #include <platform_def.h>
-#include <../hikey960_def.h>
-#include <hisi_ipc.h>
+
+
 #include "hisi_pwrc.h"
 
 
index f9666df14f51a6d6054ea4d330e5dfbb0dfd678a..54e73478f3077047e28ff9df0372da73b0c227ae 100644 (file)
 #include <delay_timer.h>
 #include <dw_ufs.h>
 #include <errno.h>
+#include <generic_delay_timer.h>
 #include <gicv2.h>
 #include <hi3660.h>
 #include <mmio.h>
-#include <generic_delay_timer.h>
 #include <platform.h>
 #include <platform_def.h>
 #include <string.h>
index 9f1befdc0933c7a573ff8f9bb55a8226c40a2395..5137f9eb23b9cfbb7af5717646f4de4f7c3381ca 100644 (file)
@@ -8,8 +8,8 @@
 #define __PLAT_MACROS_S__
 
 #include <cci.h>
-#include <hi3660.h>
 #include <gic_v2.h>
+#include <hi3660.h>
 #include <platform_def.h>
 
 .section .rodata.gic_reg_name, "aS"
index 4e8aaec38e29330a46e81182351a4cce42f0c9c3..6a13192c6ff6199b359ee1e9ae49caee44ae048d 100644 (file)
@@ -12,8 +12,8 @@
 #include <mmio.h>
 #include <mtk_plat_common.h>
 #include <mtk_sip_svc.h>
-#include <platform.h>
 #include <plat_private.h>
+#include <platform.h>
 #include <xlat_tables.h>
 
 struct atf_arg_t gteearg;
index a70d10311331e7c9be06e059d52678773aec5c42..803f1ed85ae6c3dc1bf6f55ee9e1aa31891781ab 100644 (file)
@@ -3,9 +3,9 @@
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
+#include <arch_helpers.h>
 #include <arm_gic.h>
 #include <assert.h>
-#include <arch_helpers.h>
 #include <bl_common.h>
 #include <cci.h>
 #include <common_def.h>
 #include <generic_delay_timer.h>
 #include <mcucfg.h>
 #include <mmio.h>
-#include <mtk_sip_svc.h>
-#include <mtk_plat_common.h>
 #include <mt_cpuxgpt.h>
-#include <platform.h>
+#include <mtk_plat_common.h>
+#include <mtk_sip_svc.h>
 #include <plat_private.h>
+#include <platform.h>
 #include <string.h>
 #include <xlat_tables.h>
 /*******************************************************************************
index 1f64558fe0ff3e6c2a2261e864283d2b2aaeb5e8..b357972e418623302b01efd4c0a6073a66bdf24a 100644 (file)
@@ -4,13 +4,13 @@
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
-#include <stdint.h>
+
 #include <arch_helpers.h>
+#include <debug.h>
 #include <mmio.h>
 #include <mt_cpuxgpt.h>
-#include <stdint.h>
 #include <platform.h>
-#include <debug.h>
+#include <stdint.h>
 #define CPUXGPT_BASE   0x10200000
 #define INDEX_BASE             (CPUXGPT_BASE+0x0674)
 #define CTL_BASE               (CPUXGPT_BASE+0x0670)
index a0b777535bedb4c66145af0ebea20b4414ea8538..bd47bd8b1ce172345e0d95e32269a840473e5727 100644 (file)
@@ -14,8 +14,8 @@
 #include <errno.h>
 #include <mcucfg.h>
 #include <mmio.h>
-#include <platform_def.h>
 #include <plat_private.h>
+#include <platform_def.h>
 #include <power_tracer.h>
 #include <psci.h>
 #include <scu.h>
index 6330b7bae0bf7c5ef6e4a0c447d7956e12a07902..25f25097ed913ee919a97d3ee41f4dd70397bd5e 100644 (file)
@@ -3,13 +3,14 @@
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
+
+#include <debug.h>
+#include <delay_timer.h>
 #include <mmio.h>
 #include <mt8173_def.h>
-#include <debug.h>
 #include <mtcmos.h>
 #include <spm.h>
 #include <spm_mcdi.h>
-#include <delay_timer.h>
 
 enum {
        SRAM_ISOINT_B   = 1U << 6,
index 76200eca01f00e91ef75fb0f15fd770c941f6749..1d51cb592ffcf366d87ce5d2003bf580deb3d68e 100644 (file)
@@ -6,8 +6,8 @@
 #include <crypt.h>
 #include <debug.h>
 #include <mmio.h>
-#include <mtk_sip_svc.h>
 #include <mtcmos.h>
+#include <mtk_sip_svc.h>
 #include <plat_sip_calls.h>
 #include <runtime_svc.h>
 
index 22389f274a23923c9654daf0bdf95bf4496aa039..e5e512685a788fa224c1cc7d4c301cf858e0999d 100644 (file)
@@ -7,8 +7,8 @@
 #include <asm_macros.S>
 #include <assert_macros.S>
 #include <cpu_macros.S>
-#include <cortex_a57.h>
 #include <cortex_a53.h>
+#include <cortex_a57.h>
 #include <platform_def.h>
 #include <tegra_def.h>
 
index 585c11554b28955c671762d9934a454368f7ccc0..2d827da81a0cef5d47791744bea138bd15330394 100644 (file)
@@ -6,12 +6,12 @@
 
 #include <arch_helpers.h>
 #include <assert.h>
+#include <cortex_a53.h>
 #include <debug.h>
 #include <delay_timer.h>
+#include <flowctrl.h>
 #include <mmio.h>
 #include <pmc.h>
-#include <cortex_a53.h>
-#include <flowctrl.h>
 #include <tegra_def.h>
 
 #define CLK_RST_DEV_L_SET              0x300
index bc1685745a91bf48873ab85e5830010663103661..d5d3d530d477716437c265a53fba8a2b1507ab17 100644 (file)
@@ -10,8 +10,8 @@
 #include <bl31.h>
 #include <bl_common.h>
 #include <console.h>
-#include <cortex_a57.h>
 #include <cortex_a53.h>
+#include <cortex_a57.h>
 #include <debug.h>
 #include <denver.h>
 #include <errno.h>
index ae56d55a0e252bc10ca3d9e1400aafbe4985e5ee..e480e77275e73ee47865f2d6c2aa3357027680d1 100644 (file)
@@ -5,16 +5,16 @@
  */
 
 #include <arch_helpers.h>
-#include <assert.h>
 #include <arm_gic.h>
+#include <assert.h>
 #include <bl_common.h>
 #include <debug.h>
 #include <gic_v2.h>
 #include <interrupt_mgmt.h>
 #include <platform.h>
 #include <stdint.h>
-#include <tegra_private.h>
 #include <tegra_def.h>
+#include <tegra_private.h>
 
 /* Value used to initialize Non-Secure IRQ priorities four at a time */
 #define GICD_IPRIORITYR_DEF_VAL \
index 6f841ef0941c575e9210a86a5d3de319cd5a82d3..0c25934c3101f4bf9eb92c47d39f9a0586c59548 100644 (file)
@@ -7,9 +7,9 @@
 #include <arch_helpers.h>
 #include <assert.h>
 #include <bl_common.h>
+#include <console.h>
 #include <context.h>
 #include <context_mgmt.h>
-#include <console.h>
 #include <debug.h>
 #include <memctrl.h>
 #include <mmio.h>
index dcad21e0e31c7cac7b9de08867dfe384a14ffd51..d96ce7a07a9e2fdfb3ad868a13d52ca60e47104a 100644 (file)
@@ -13,8 +13,8 @@
 #include <memctrl.h>
 #include <mmio.h>
 #include <runtime_svc.h>
-#include <tegra_private.h>
 #include <tegra_platform.h>
+#include <tegra_private.h>
 
 /*******************************************************************************
  * Common Tegra SiP SMCs
index 9b7dc8537ff41dc7810bf4d0a44f9a0068cebfe1..1cffb741a9e16d7ecbd5ddcd1ba5fb434a801f3a 100644 (file)
@@ -7,9 +7,9 @@
 #include <arch.h>
 #include <arch_helpers.h>
 #include <assert.h>
-#include <denver.h>
 #include <debug.h>
 #include <delay_timer.h>
+#include <denver.h>
 #include <flowctrl.h>
 #include <mmio.h>
 #include <platform_def.h>
index 96f514d83d3085f1194bf3faaad399f7b1ae78e4..d5ca30c976f47fbd0b45b566e350445ec8a998c3 100644 (file)
@@ -10,8 +10,8 @@
 #include <denver.h>
 #include <mmio.h>
 #include <platform.h>
-#include <psci.h>
 #include <pmc.h>
+#include <psci.h>
 #include <tegra_def.h>
 
 #define SB_CSR                         0x0
index 2803f4eaa7cfaf8c643b2e02d9ae53c21fa8ae0b..d34f7e288da813210da3bf3b836e7bf18055941f 100644 (file)
@@ -10,8 +10,8 @@
 #include <debug.h>
 #include <delay_timer.h>
 #include <denver.h>
-#include <mmio.h>
 #include <mce_private.h>
+#include <mmio.h>
 #include <platform.h>
 #include <sys/errno.h>
 #include <t18x_ari.h>
index 9c115bdd518095277a1c30da5a59f2c719d14795..243c8f3a373619152e91a85a637dea0d8c5f91f0 100644 (file)
@@ -8,8 +8,8 @@
 #include <arch_helpers.h>
 #include <debug.h>
 #include <denver.h>
-#include <mmio.h>
 #include <mce_private.h>
+#include <mmio.h>
 #include <sys/errno.h>
 #include <t18x_ari.h>
 
index 3dff6539dc4b834234d992cb141a3eb4e34f821e..f77746cae1ed320b27312005a3f76759595336ac 100644 (file)
@@ -8,12 +8,12 @@
 #include <assert.h>
 #include <debug.h>
 #include <delay_timer.h>
+#include <flowctrl.h>
 #include <mmio.h>
 #include <platform.h>
 #include <platform_def.h>
-#include <psci.h>
 #include <pmc.h>
-#include <flowctrl.h>
+#include <psci.h>
 #include <tegra_def.h>
 #include <tegra_private.h>
 
index f732a6d5d2bd1ce4d83f2ea0b991958e83e23cdd..c544d9f446d62dc1f24158feaa50768db2a77a07 100644 (file)
@@ -7,8 +7,8 @@
 #include <debug.h>
 #include <libfdt.h>
 #include <psci.h>
-#include "qemu_private.h"
 #include <string.h>
+#include "qemu_private.h"
 
 static int append_psci_compatible(void *fdt, int offs, const char *str)
 {
index 2557a711a84acd660400bff6464b21f065edecbb..f928b105331d2028f115b6406166cd274f95043f 100644 (file)
@@ -9,9 +9,9 @@
 #include <debug.h>
 #include <libfdt.h>
 #include <platform_def.h>
-#include "qemu_private.h"
 #include <string.h>
 #include <utils.h>
+#include "qemu_private.h"
 
 /*
  * The next 2 constants identify the extents of the code & RO data region.
index 39df1f13b56e93f33ecd2fc11f5ca4bb988edd4f..daa9fc146bc8d398cc878ddcfb6f1b512e6b1611 100644 (file)
@@ -7,8 +7,8 @@
 #include <arch_helpers.h>
 #include <bl_common.h>
 #include <platform_def.h>
-#include "qemu_private.h"
 #include <xlat_tables.h>
+#include "qemu_private.h"
 
 #define MAP_DEVICE0    MAP_REGION_FLAT(DEVICE0_BASE,                   \
                                        DEVICE0_SIZE,                   \
index f735391283044bcacaaa70f8106be385aba3350f..c184f1c35d9c47f8312f62881d44f5af1fcfebdc 100644 (file)
@@ -8,8 +8,8 @@
 #include <assert.h>
 #include <debug.h>
 #include <gicv2.h>
-#include <platform_def.h>
 #include <platform.h>
+#include <platform_def.h>
 #include <psci.h>
 
 /*
index 05ff4e1f84047480c039a1ec1775909bbdcc0cf2..d7ba9b7e0e985e6ef0ddebedb67f2d2845d92da7 100644 (file)
@@ -6,8 +6,8 @@
 
 #include <arch.h>
 #include <platform_def.h>
-#include "qemu_private.h"
 #include <sys/types.h>
+#include "qemu_private.h"
 
 /* The power domain tree descriptor */
 static unsigned char power_domain_tree_desc[] = {
index a756f40dbec63c738379d3f260e326544d8dd31b..25eab43469841b979d7c022c61c227d52326813e 100644 (file)
@@ -9,11 +9,11 @@
 #include <bl_common.h>
 #include <cci.h>
 #include <debug.h>
-#include <string.h>
-#include <xlat_tables.h>
-#include <platform_def.h>
 #include <plat_private.h>
+#include <platform_def.h>
+#include <string.h>
 #include <utils.h>
+#include <xlat_tables.h>
 
 #ifdef PLAT_RK_CCI_BASE
 static const int cci_map[] = {
index f7564e81ca3bf090b0db09bd4616944486cf3400..292f0dd7d17816df64feca96a12d21ba6e174338 100644 (file)
@@ -11,8 +11,8 @@
 #include <debug.h>
 #include <generic_delay_timer.h>
 #include <mmio.h>
-#include <platform.h>
 #include <plat_private.h>
+#include <platform.h>
 #include <platform_def.h>
 
 /*******************************************************************************
index 5069a92952076e3ab5a3798d96e0d63b888d1abd..ea77757f7b1b9a142f7f2686c0499ee56587bf11 100644 (file)
@@ -9,8 +9,8 @@
 #include <debug.h>
 #include <delay_timer.h>
 #include <mmio.h>
-#include <platform_def.h>
 #include <plat_private.h>
+#include <platform_def.h>
 #include <soc.h>
 #include <string.h>
 #include "ddr_parameter.h"
index f8eacd4bed40161406c13a6a72b08c7e9007b56d..f8e3be93bfabe27782171a144fd7492f59f79df3 100644 (file)
@@ -12,8 +12,8 @@
 #include <debug.h>
 #include <delay_timer.h>
 #include <mmio.h>
-#include <platform_def.h>
 #include <plat_private.h>
+#include <platform_def.h>
 #include <soc.h>
 #include <string.h>
 
index b9540f23e6b0499cdb22489ffa865ad4640ea038..290811a2657b546331b70414a645ff15ba7c9a42 100644 (file)
@@ -9,9 +9,9 @@
 
 #ifndef __ASSEMBLY__
 #include <mmio.h>
+#include <psci.h>
 #include <stdint.h>
 #include <xlat_tables.h>
-#include <psci.h>
 
 #define __sramdata __attribute__((section(".sram.data")))
 #define __sramconst __attribute__((section(".sram.rodata")))
index ad4ef7f31ab75ec3a9336e0b1d23e8c949b2306a..b37acb76bfdea7572e5f11fad475eed45bfe93ca 100644 (file)
@@ -11,9 +11,9 @@
 #include <debug.h>
 #include <gpio.h>
 #include <mmio.h>
-#include <platform.h>
 #include <plat_params.h>
 #include <plat_private.h>
+#include <platform.h>
 #include <string.h>
 
 static struct gpio_info param_reset;
index 4133fd04f1dafa2bea43c2e4e83fdac90fa370cc..cd88f60cbc5491a7d4f291b4526508d11a8e9dff 100644 (file)
@@ -7,12 +7,12 @@
 #include <arch_helpers.h>
 #include <assert.h>
 #include <console.h>
-#include <errno.h>
 #include <debug.h>
-#include <psci.h>
 #include <delay_timer.h>
-#include <platform_def.h>
+#include <errno.h>
 #include <plat_private.h>
+#include <platform_def.h>
+#include <psci.h>
 
 /* Macros to read the rk power domain state */
 #define RK_CORE_PWR_STATE(state) \
index 3d0f208194d01dc4d9ae96f82cc0d067c4af28dc..49d063cf5746c2086bb04628fec02e00905b3c9c 100644 (file)
@@ -5,8 +5,8 @@
  */
 
 #include <arch.h>
-#include <platform_def.h>
 #include <plat_private.h>
+#include <platform_def.h>
 #include <psci.h>
 
 /*******************************************************************************
index 60f36d31b8ba8f49ef8699acb03519860290db29..f576fe41263f44728b83d53a7fce9a0c708bd0e3 100644 (file)
@@ -5,20 +5,20 @@
  */
 
 #include <arch_helpers.h>
-#include <debug.h>
 #include <assert.h>
 #include <bakery_lock.h>
 #include <bl31.h>
 #include <console.h>
+#include <debug.h>
 #include <delay_timer.h>
 #include <errno.h>
 #include <mmio.h>
+#include <plat_private.h>
 #include <platform.h>
 #include <platform_def.h>
-#include <plat_private.h>
 #include <pmu.h>
-#include <rk3328_def.h>
 #include <pmu_com.h>
+#include <rk3328_def.h>
 
 DEFINE_BAKERY_LOCK(rockchip_pd_lock);
 
index d4cba99821594eb5542c32969dbaa23c6e260c35..ce344d66d54a33a0a95c0f19211bb4c12081343f 100644 (file)
@@ -6,12 +6,12 @@
 
 #include <arch_helpers.h>
 #include <console.h>
+#include <ddr_parameter.h>
 #include <debug.h>
 #include <delay_timer.h>
 #include <mmio.h>
-#include <platform_def.h>
 #include <plat_private.h>
-#include <ddr_parameter.h>
+#include <platform_def.h>
 #include <rk3328_def.h>
 #include <soc.h>
 
index b902bba945d2a74e79e37da297fbad588d4531a3..1c33763f317d02220cdfaa4520d820e010ba1409 100644 (file)
@@ -7,12 +7,12 @@
 #include <mmio.h>
 #include <ddr_rk3368.h>
 #include <debug.h>
-#include <stdint.h>
-#include <string.h>
 #include <platform_def.h>
 #include <pmu.h>
 #include <rk3368_def.h>
 #include <soc.h>
+#include <stdint.h>
+#include <string.h>
 
 /* GRF_SOC_STATUS0 */
 #define DPLL_LOCK              (0x1 << 2)
index 1767967f34178188d480bfb8cb4db05f81f2e0d2..cb323e6ee931a55885b99468ce707536f2f64374 100644 (file)
@@ -6,18 +6,18 @@
 
 #include <arch_helpers.h>
 #include <assert.h>
+#include <ddr_rk3368.h>
 #include <debug.h>
 #include <delay_timer.h>
 #include <errno.h>
 #include <mmio.h>
+#include <plat_private.h>
 #include <platform.h>
 #include <platform_def.h>
-#include <plat_private.h>
-#include <rk3368_def.h>
-#include <soc.h>
 #include <pmu.h>
-#include <ddr_rk3368.h>
 #include <pmu_com.h>
+#include <rk3368_def.h>
+#include <soc.h>
 
 DEFINE_BAKERY_LOCK(rockchip_pd_lock);
 
index 9e1e583b509c6eaee6bc935b324e4009b5f5852b..d6979a8449eee9ee60f17edc0f2f4617ebc7766d 100644 (file)
@@ -7,8 +7,8 @@
 #include <arch_helpers.h>
 #include <debug.h>
 #include <mmio.h>
-#include <platform_def.h>
 #include <plat_private.h>
+#include <platform_def.h>
 #include <rk3368_def.h>
 #include <soc.h>
 
index 481dcc64edae5b56b45fe13e820f29089e62523d..d629e4bfb6b04b3c8e2a79929d8a7bb8fbae8116 100644 (file)
@@ -6,17 +6,16 @@
 
 #include <arch_helpers.h>
 #include <debug.h>
-#include <mmio.h>
+#include <delay_timer.h>
 #include <m0_ctl.h>
+#include <mmio.h>
 #include <plat_private.h>
 #include "dfs.h"
 #include "dram.h"
 #include "dram_spec_timing.h"
-#include "string.h"
-#include "soc.h"
 #include "pmu.h"
-
-#include <delay_timer.h>
+#include "soc.h"
+#include "string.h"
 
 #define ENPER_CS_TRAINING_FREQ (666)
 #define TDFI_LAT_THRESHOLD_FREQ        (928)
index ad79f9efb5c90b38705971c46b3c85545ee45754..42b62945ad9e2bfa55940654290cb3fb84b86355 100644 (file)
@@ -6,9 +6,9 @@
 
 #include <dram.h>
 #include <plat_private.h>
+#include <rk3399_def.h>
 #include <secure.h>
 #include <soc.h>
-#include <rk3399_def.h>
 
 __pmusramdata struct rk3399_sdram_params sdram_config;
 
index a2b28b7e1095ad28bb434504c58183f8e987da8b..2e196b54c175d56166c2811b5685731796492954 100644 (file)
@@ -4,9 +4,9 @@
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
-#include <string.h>
-#include <stdint.h>
 #include <dram.h>
+#include <stdint.h>
+#include <string.h>
 #include <utils.h>
 #include "dram_spec_timing.h"
 
index 617e39baad3994df5fa7eb89bd84f86d9cd6bf63..68677449822548a3edab838fc4ef707b515db905 100644 (file)
@@ -3,11 +3,12 @@
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
-#include <debug.h>
+
 #include <arch_helpers.h>
-#include <platform_def.h>
-#include <plat_private.h>
+#include <debug.h>
 #include <dram.h>
+#include <plat_private.h>
+#include <platform_def.h>
 #include <pmu_regs.h>
 #include <rk3399_def.h>
 #include <secure.h>
index 2d8b439ca7da593995377dc66e6cb384bfc24d94..d5a26609321d681a274b809255621f31aec7cbe6 100644 (file)
@@ -9,9 +9,9 @@
 #include <errno.h>
 #include <gpio.h>
 #include <mmio.h>
+#include <plat_private.h>
 #include <platform.h>
 #include <platform_def.h>
-#include <plat_private.h>
 #include <soc.h>
 
 uint32_t gpio_port[] = {
index 99a5b639dfd61513c56a95c7793e212af76bbaf6..61849e5006475991ed4b2561e5452edd1d375237 100644 (file)
@@ -8,8 +8,8 @@
 #include <assert.h>
 #include <debug.h>
 #include <delay_timer.h>
-#include <mmio.h>
 #include <m0_ctl.h>
+#include <mmio.h>
 #include <plat_private.h>
 #include <rk3399_def.h>
 #include <secure.h>
index 37977e14da929dfc689e154b451d0047b0c355de..6b420c24ce962e87f86b1770324697b75ec9a14f 100644 (file)
@@ -7,25 +7,25 @@
 #include <arch_helpers.h>
 #include <assert.h>
 #include <bakery_lock.h>
+#include <bl31.h>
 #include <debug.h>
 #include <delay_timer.h>
 #include <dfs.h>
 #include <errno.h>
 #include <gpio.h>
-#include <mmio.h>
 #include <m0_ctl.h>
-#include <platform.h>
-#include <platform_def.h>
+#include <mmio.h>
 #include <plat_params.h>
 #include <plat_private.h>
+#include <platform.h>
+#include <platform_def.h>
+#include <pmu.h>
+#include <pmu_com.h>
+#include <pwm.h>
 #include <rk3399_def.h>
 #include <secure.h>
 #include <soc.h>
 #include <string.h>
-#include <pmu.h>
-#include <pmu_com.h>
-#include <pwm.h>
-#include <bl31.h>
 #include <suspend.h>
 
 DEFINE_BAKERY_LOCK(rockchip_pd_lock);
index b3e9e953e2ba13f017e3d91374535162353de35a..993b80ad4833428358e6190bad0bd94dc8dc434a 100644 (file)
 #include <delay_timer.h>
 #include <dfs.h>
 #include <dram.h>
-#include <mmio.h>
 #include <m0_ctl.h>
-#include <platform_def.h>
+#include <mmio.h>
 #include <plat_private.h>
+#include <platform_def.h>
 #include <rk3399_def.h>
 #include <secure.h>
 #include <soc.h>
index 1a016042f27d0ddefa2a0fb112d2a4c5400180ec..074dc193f2b2d08850713fe5798c1300723a89c5 100644 (file)
@@ -6,11 +6,11 @@
 
 #include <cdn_dp.h>
 #include <debug.h>
+#include <dfs.h>
 #include <mmio.h>
 #include <plat_sip_calls.h>
 #include <rockchip_sip_svc.h>
 #include <runtime_svc.h>
-#include <dfs.h>
 
 #define RK_SIP_DDR_CFG         0x82000008
 #define DRAM_INIT              0x00
index 61372291ed60424454916e62bdc4ef94cfd1d0dd..1edbd0f65009e2de30a86d378fa438ca3e1293d9 100644 (file)
@@ -5,8 +5,8 @@
  */
 
 #include <assert.h>
-#include <bl_common.h>
 #include <bl31.h>
+#include <bl_common.h>
 #include <console.h>
 #include <debug.h>
 #include <errno.h>
index d334a1046bc3404be3724a38a82d4099d5534a2f..c9fd36113e1f425f8d287f34b04389d0566a39ee 100644 (file)
@@ -5,9 +5,9 @@
  */
 
 #include <arch_helpers.h>
-#include <errno.h>
 #include <assert.h>
 #include <debug.h>
+#include <errno.h>
 #include <gicv2.h>
 #include <mmio.h>
 #include <plat_arm.h>
index 40f4da735826477a880ac6e94bc05f6845621d37..90c670d146b875c8ba7346bc009aee6e7d900be5 100644 (file)
 
 #include <arch_helpers.h>
 #include <platform.h>
+#include "pm_api_sys.h"
 #include "pm_client.h"
-#include "pm_ipi.h"
 #include "pm_common.h"
-#include "pm_api_sys.h"
+#include "pm_ipi.h"
 
 /**
  * Assigning of argument values into array elements.
index 08369b99e6cae6d03972b6c10d70322f85fd1ff5..9016fd6f33d9c00e648e3dcaa7d2532570e7810c 100644 (file)
 
 #include <assert.h>
 #include <bakery_lock.h>
-#include <gicv2.h>
-#include <gic_common.h>
 #include <bl_common.h>
+#include <gic_common.h>
+#include <gicv2.h>
 #include <mmio.h>
 #include <string.h>
 #include <utils.h>
+#include "../zynqmp_def.h"
 #include "pm_api_sys.h"
 #include "pm_client.h"
 #include "pm_ipi.h"
-#include "../zynqmp_def.h"
 
 #define IRQ_MAX                84
 #define NUM_GICD_ISENABLER     ((IRQ_MAX >> 5) + 1)
index 03dec4c4e299ad32d12bcf95fdc3d223170d6097..16e37d59225ff76ec7ff2c41b93d9eeabf31e68e 100644 (file)
@@ -12,8 +12,8 @@
 #ifndef _PM_CLIENT_H_
 #define _PM_CLIENT_H_
 
-#include "pm_defs.h"
 #include "pm_common.h"
+#include "pm_defs.h"
 
 /* Functions to be implemented by each PU */
 void pm_client_suspend(const struct pm_proc *proc, unsigned int state);
index ba72491c1f675bd2fddc8c3a2e43079f85ee22a4..fdffde772c44574d4563683adf5c6969a1ecdd32 100644 (file)
@@ -4,12 +4,12 @@
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
+#include <arch_helpers.h>
 #include <bakery_lock.h>
 #include <mmio.h>
 #include <platform.h>
-#include <arch_helpers.h>
-#include "pm_ipi.h"
 #include "../zynqmp_private.h"
+#include "pm_ipi.h"
 
 /* IPI message buffers */
 #define IPI_BUFFER_BASEADDR    0xFF990000U
index b8381712794ba3fe54f15f67190839be76356033..f4e679bc40a15d28bd6faecd965eefce892d2540 100644 (file)
 #include <gic_common.h>
 #include <runtime_svc.h>
 #include <string.h>
+#include "../zynqmp_private.h"
 #include "pm_api_sys.h"
 #include "pm_client.h"
 #include "pm_ipi.h"
-#include "../zynqmp_private.h"
 
 #define PM_GET_CALLBACK_DATA   0xa01
 
index 27736f75cefbb0c47004e3073a5bc1dfe1220bf3..ecc4d0a972308cdbce3a99c841b6b461ed949219 100644 (file)
@@ -7,8 +7,8 @@
 #include <bl_common.h>
 #include <console.h>
 #include <debug.h>
-#include <platform_tsp.h>
 #include <plat_arm.h>
+#include <platform_tsp.h>
 #include "../zynqmp_private.h"
 
 #define BL32_END (unsigned long)(&__BL32_END__)