From e8246c07142cf18db3c7f37bd1fb84dc416746f3 Mon Sep 17 00:00:00 2001 From: Dan Handley Date: Fri, 11 Apr 2014 11:52:12 +0100 Subject: [PATCH] Move FVP power driver to FVP platform Move the FVP power driver to a directory under the FVP platform port as this is not a generically usable driver. Change-Id: Ibc78bd88752eb3e3964336741488349ac345f4f0 --- plat/fvp/aarch64/bl1_plat_helpers.S | 2 +- plat/fvp/bl31_plat_setup.c | 2 +- {drivers/power => plat/fvp/drivers/pwrc}/fvp_pwrc.c | 2 +- {include/drivers => plat/fvp/drivers/pwrc}/fvp_pwrc.h | 0 plat/fvp/plat_pm.c | 2 +- plat/fvp/plat_topology.c | 2 +- plat/fvp/platform.mk | 4 ++-- 7 files changed, 7 insertions(+), 7 deletions(-) rename {drivers/power => plat/fvp/drivers/pwrc}/fvp_pwrc.c (99%) rename {include/drivers => plat/fvp/drivers/pwrc}/fvp_pwrc.h (100%) diff --git a/plat/fvp/aarch64/bl1_plat_helpers.S b/plat/fvp/aarch64/bl1_plat_helpers.S index 15e3a21c..69fb14bb 100644 --- a/plat/fvp/aarch64/bl1_plat_helpers.S +++ b/plat/fvp/aarch64/bl1_plat_helpers.S @@ -30,9 +30,9 @@ #include #include -#include #include #include +#include "../drivers/pwrc/fvp_pwrc.h" .globl platform_get_entrypoint .globl platform_cold_boot_init diff --git a/plat/fvp/bl31_plat_setup.c b/plat/fvp/bl31_plat_setup.c index 9bf83eba..bd167df0 100644 --- a/plat/fvp/bl31_plat_setup.c +++ b/plat/fvp/bl31_plat_setup.c @@ -30,8 +30,8 @@ #include #include -#include #include +#include "drivers/pwrc/fvp_pwrc.h" /******************************************************************************* * Declarations of linker defined symbols which will help us find the layout diff --git a/drivers/power/fvp_pwrc.c b/plat/fvp/drivers/pwrc/fvp_pwrc.c similarity index 99% rename from drivers/power/fvp_pwrc.c rename to plat/fvp/drivers/pwrc/fvp_pwrc.c index 3916c048..164a7343 100644 --- a/drivers/power/fvp_pwrc.c +++ b/plat/fvp/drivers/pwrc/fvp_pwrc.c @@ -34,8 +34,8 @@ #include #include #include -#include #include +#include "fvp_pwrc.h" /* * TODO: Someday there will be a generic power controller api. At the moment diff --git a/include/drivers/fvp_pwrc.h b/plat/fvp/drivers/pwrc/fvp_pwrc.h similarity index 100% rename from include/drivers/fvp_pwrc.h rename to plat/fvp/drivers/pwrc/fvp_pwrc.h diff --git a/plat/fvp/plat_pm.c b/plat/fvp/plat_pm.c index 7b51476e..2a414c98 100644 --- a/plat/fvp/plat_pm.c +++ b/plat/fvp/plat_pm.c @@ -39,9 +39,9 @@ #include #include #include -#include /* Only included for error codes */ #include +#include "drivers/pwrc/fvp_pwrc.h" /******************************************************************************* * FVP handler called when an affinity instance is about to enter standby. diff --git a/plat/fvp/plat_topology.c b/plat/fvp/plat_topology.c index 0c8c5259..765077e3 100644 --- a/plat/fvp/plat_topology.c +++ b/plat/fvp/plat_topology.c @@ -31,9 +31,9 @@ #include #include #include -#include /* TODO: Reusing psci error codes & state information. Get our own! */ #include +#include "drivers/pwrc/fvp_pwrc.h" /* We treat '255' as an invalid affinity instance */ #define AFFINST_INVAL 0xff diff --git a/plat/fvp/platform.mk b/plat/fvp/platform.mk index 2b904ee0..f55000dc 100644 --- a/plat/fvp/platform.mk +++ b/plat/fvp/platform.mk @@ -57,8 +57,8 @@ PLAT_BL31_C_VPATH := drivers/arm/cci-400 \ lib/${ARCH} \ lib/semihosting \ lib/stdlib \ - drivers/power \ - drivers/io + drivers/io \ + plat/fvp/drivers/pwrc PLAT_BL31_S_VPATH := lib/semihosting/${ARCH} -- 2.30.2