Refactor the ARM CoreLink TZC-400 driver
authorVikram Kanigiri <vikram.kanigiri@arm.com>
Thu, 28 Jan 2016 17:22:16 +0000 (17:22 +0000)
committerSoby Mathew <soby.mathew@arm.com>
Thu, 31 Mar 2016 20:23:23 +0000 (21:23 +0100)
commit6b4770637593f79aa6cfd1f062c1e5d0b1d587bc
treed0b8919536a4eb65944e8bb284fe5be184be6890
parent6b1ca8f35802fddc530e1a5f2be7b82ddbab6917
Refactor the ARM CoreLink TZC-400 driver

TrustZone protection can be programmed by both memory and TrustZone
address space controllers like DMC-500 and TZC-400. These peripherals
share a similar programmer's view.

Furthermore, it is possible to have multiple instances of each type of
peripheral in a system resulting in multiple programmer's views.
For example, on the TZC-400 each of the 4 filter units can be enabled
or disabled for each region. There is a single set of registers to
program the region attributes. On the DMC-500, each filter unit has its
own programmer's view resulting in multiple sets of registers to program
the region attributes. The layout of the registers is almost the same
across all these variations.

Hence the existing driver in `tzc400\tzc400.c` is refactored into the
new driver in `tzc\tzc400.c`. The previous driver file is still maintained
for compatibility and it is now deprecated.

Change-Id: Ieabd0528e244582875bc7e65029a00517671216d
drivers/arm/tzc/tzc400.c [new file with mode: 0644]
drivers/arm/tzc/tzc_common_private.c [new file with mode: 0644]
drivers/arm/tzc400/tzc400.c
include/drivers/arm/tzc400.h
include/drivers/arm/tzc_common.h [new file with mode: 0644]