Refactor fvp gic code to be a generic driver
Refactor the FVP gic code in plat/fvp/fvp_gic.c to be a generic ARM
GIC driver in drivers/arm/gic/arm_gic.c. Provide the platform
specific inputs in the arm_gic_setup() function so that the driver
has no explicit dependency on platform code.

Provide weak implementations of the platform interrupt controller
API in a new file, plat/common/plat_gic.c. These simply call through
to the ARM GIC driver.

Move the only remaining FVP GIC function, fvp_gic_init() to
plat/fvp/aarch64/fvp_common.c and remove plat/fvp/fvp_gic.c

Fixes ARM-software/tf-issues#182

Change-Id: Iea82fe095fad62dd33ba9efbddd48c57717edd21
1 parent 6f3b195 commit 1e8c5c4f20ef820c339992a89a4680f2ccddd69b
@Dan Handley Dan Handley authored on 20 Jun 2014
Showing 13 changed files
View
bl32/tsp/tsp-fvp.mk
View
docs/user-guide.md
View
drivers/arm/gic/arm_gic.c 0 → 100644
View
include/drivers/arm/arm_gic.h 0 → 100644
View
include/drivers/arm/gic_v2.h
View
plat/common/plat_gic.c 0 → 100644
View
plat/fvp/aarch64/fvp_common.c
View
plat/fvp/bl31_fvp_setup.c
View
plat/fvp/bl32_fvp_setup.c
View
plat/fvp/fvp_gic.c 100644 → 0
View
plat/fvp/fvp_pm.c
View
plat/fvp/fvp_private.h
View
plat/fvp/platform.mk