Commit 560293bb authored by Antonio Nino Diaz's avatar Antonio Nino Diaz
Browse files

fvp: pwrc: Move to drivers/ folder


Change-Id: I670ea80e0331c2d4b2ccfa563a45469a43f6902d
Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
parent 5932d194
Showing with 13 additions and 16 deletions
+13 -16
...@@ -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 <plat/arm/common/plat_arm.h>
#include <platform_def.h> #include <platform_def.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.
......
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <stdint.h>
/******************************************************************************* /*******************************************************************************
* Function & variable prototypes * Function & variable prototypes
******************************************************************************/ ******************************************************************************/
......
...@@ -6,10 +6,9 @@ ...@@ -6,10 +6,9 @@
#include <arch.h> #include <arch.h>
#include <asm_macros.S> #include <asm_macros.S>
#include <drivers/arm/fvp/fvp_pwrc.h>
#include <platform_def.h> #include <platform_def.h>
#include "../drivers/pwrc/fvp_pwrc.h"
.globl plat_secondary_cold_boot_setup .globl plat_secondary_cold_boot_setup
.globl plat_get_my_entrypoint .globl plat_get_my_entrypoint
.globl plat_is_my_cpu_primary .globl plat_is_my_cpu_primary
......
...@@ -8,10 +8,9 @@ ...@@ -8,10 +8,9 @@
#include <asm_macros.S> #include <asm_macros.S>
#include <drivers/arm/gicv2.h> #include <drivers/arm/gicv2.h>
#include <drivers/arm/gicv3.h> #include <drivers/arm/gicv3.h>
#include <drivers/arm/fvp/fvp_pwrc.h>
#include <platform_def.h> #include <platform_def.h>
#include "../drivers/pwrc/fvp_pwrc.h"
.globl plat_secondary_cold_boot_setup .globl plat_secondary_cold_boot_setup
.globl plat_get_my_entrypoint .globl plat_get_my_entrypoint
.globl plat_is_my_cpu_primary .globl plat_is_my_cpu_primary
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/gicv3.h> #include <drivers/arm/gicv3.h>
#include <drivers/arm/fvp/fvp_pwrc.h>
#include <lib/extensions/spe.h> #include <lib/extensions/spe.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/psci/psci.h> #include <lib/psci/psci.h>
...@@ -18,7 +19,6 @@ ...@@ -18,7 +19,6 @@
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <platform_def.h> #include <platform_def.h>
#include "drivers/pwrc/fvp_pwrc.h"
#include "fvp_private.h" #include "fvp_private.h"
......
...@@ -7,13 +7,12 @@ ...@@ -7,13 +7,12 @@
#include <platform_def.h> #include <platform_def.h>
#include <arch.h> #include <arch.h>
#include <drivers/arm/fvp/fvp_pwrc.h>
#include <lib/cassert.h> #include <lib/cassert.h>
#include <plat/arm/common/arm_config.h> #include <plat/arm/common/arm_config.h>
#include <plat/arm/common/plat_arm.h> #include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include "drivers/pwrc/fvp_pwrc.h"
/* The FVP power domain tree descriptor */ /* The FVP power domain tree descriptor */
static unsigned char fvp_power_domain_tree_desc[FVP_CLUSTER_COUNT + 2]; static unsigned char fvp_power_domain_tree_desc[FVP_CLUSTER_COUNT + 2];
......
...@@ -146,14 +146,14 @@ endif ...@@ -146,14 +146,14 @@ endif
BL2U_SOURCES += plat/arm/board/fvp/fvp_bl2u_setup.c \ BL2U_SOURCES += plat/arm/board/fvp/fvp_bl2u_setup.c \
${FVP_SECURITY_SOURCES} ${FVP_SECURITY_SOURCES}
BL31_SOURCES += drivers/arm/smmu/smmu_v3.c \ BL31_SOURCES += drivers/arm/fvp/fvp_pwrc.c \
drivers/arm/smmu/smmu_v3.c \
drivers/cfi/v2m/v2m_flash.c \ drivers/cfi/v2m/v2m_flash.c \
lib/utils/mem_region.c \ lib/utils/mem_region.c \
plat/arm/board/fvp/fvp_bl31_setup.c \ plat/arm/board/fvp/fvp_bl31_setup.c \
plat/arm/board/fvp/fvp_pm.c \ plat/arm/board/fvp/fvp_pm.c \
plat/arm/board/fvp/fvp_topology.c \ plat/arm/board/fvp/fvp_topology.c \
plat/arm/board/fvp/aarch64/fvp_helpers.S \ plat/arm/board/fvp/aarch64/fvp_helpers.S \
plat/arm/board/fvp/drivers/pwrc/fvp_pwrc.c \
plat/arm/common/arm_nor_psci_mem_protect.c \ plat/arm/common/arm_nor_psci_mem_protect.c \
${FVP_CPU_LIBS} \ ${FVP_CPU_LIBS} \
${FVP_GIC_SOURCES} \ ${FVP_GIC_SOURCES} \
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
# #
# SP_MIN source files specific to FVP platform # SP_MIN source files specific to FVP platform
BL32_SOURCES += drivers/cfi/v2m/v2m_flash.c \ BL32_SOURCES += drivers/arm/fvp/fvp_pwrc.c \
drivers/cfi/v2m/v2m_flash.c \
lib/utils/mem_region.c \ lib/utils/mem_region.c \
plat/arm/board/fvp/aarch32/fvp_helpers.S \ plat/arm/board/fvp/aarch32/fvp_helpers.S \
plat/arm/board/fvp/drivers/pwrc/fvp_pwrc.c \
plat/arm/board/fvp/fvp_pm.c \ plat/arm/board/fvp/fvp_pm.c \
plat/arm/board/fvp/fvp_topology.c \ plat/arm/board/fvp/fvp_topology.c \
plat/arm/board/fvp/sp_min/fvp_sp_min_setup.c \ plat/arm/board/fvp/sp_min/fvp_sp_min_setup.c \
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
# #
# TSP source files specific to FVP platform # TSP source files specific to FVP platform
BL32_SOURCES += plat/arm/board/fvp/aarch64/fvp_helpers.S \ BL32_SOURCES += drivers/arm/fvp/fvp_pwrc.c \
plat/arm/board/fvp/drivers/pwrc/fvp_pwrc.c \ plat/arm/board/fvp/aarch64/fvp_helpers.S \
plat/arm/board/fvp/fvp_topology.c \ plat/arm/board/fvp/fvp_topology.c \
plat/arm/board/fvp/tsp/fvp_tsp_setup.c \ plat/arm/board/fvp/tsp/fvp_tsp_setup.c \
${FVP_GIC_SOURCES} ${FVP_GIC_SOURCES}
......
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