6. TrustZone® address space controller for DDR (TZC)

6.1 Introduction

The TZC filters read/write accesses to the DDR controller according to TrustZone access rights, and according to Non-secure master Address ID (NSAID) on up to 9 programmable regions.

Note: For more information, please refer to Arm TZC-400 TRM.

6.2 TZC features

Note: Fast path and FPID signals are not used in STM32MP13xx. Configured acceptance on FPID is set to minimum (8).

6.3 TZC block diagram

The TZC block diagram is shown in Figure 9: TZC block diagram.

Figure 8. TZC block diagram

Block diagram of the TZC (TrustZone address space controller for DDR). The diagram shows a dashed box labeled 'TZC' containing a 'control' block and a 'Filter unit 0' block. The 'control' block contains 'registers'. An 'APB' interface connects to the 'registers'. A 'tzint' signal is output from the 'control' block. 'Port0 (in)' connects to 'Filter unit 0' via an 'AXI' interface, and 'Filter unit 0' connects to 'Port0 (out)' via an 'AXI' interface.
graph LR; subgraph TZC; direction TB; control[control]; registers[registers]; filter[Filter unit 0]; control --- registers; end; APB --> registers; control --> tzint[tzint]; Port0_in[Port0 (in)] -- AXI --> filter; filter -- AXI --> Port0_out[Port0 (out)];

MSv45039V1

Block diagram of the TZC (TrustZone address space controller for DDR). The diagram shows a dashed box labeled 'TZC' containing a 'control' block and a 'Filter unit 0' block. The 'control' block contains 'registers'. An 'APB' interface connects to the 'registers'. A 'tzint' signal is output from the 'control' block. 'Port0 (in)' connects to 'Filter unit 0' via an 'AXI' interface, and 'Filter unit 0' connects to 'Port0 (out)' via an 'AXI' interface.

6.4 TZC functional description

The TZC enforces the access permissions of several regions:

Access permissions are checked against transaction security and the transaction source:

A region must be granted secure access if required, regardless of the settings for non-secure reads and non-secure writes. For example, when permissions are set so that a non-secure read or non-secure write access is permitted, this does not mean that the corresponding secure read or secure write access is also automatically granted.

Table 20. NSAID and AXI_ID mapping

MasterNSAID[3:0]ID_WIDTHAXI_ID[10:0]
CA70b0000AR:6/AW:511'b10XXXXXX000
LTDC0b0011411'b1000XXXX011
DCMIPP0b1011411'b0100XXXX100
MDMA0b0101111'b0000000X010
DMA1/2/30b0110011'b00000000000
USBH (EHCI)0b0111011'b01000000000
USBH (OHCI)0b0111011'b01000000001
OTG0b1000011'b00000000000
SDMMC10b1001011'b00000000011
SDMMC20b1001011'b00000000100
ETH10b1010411'b0100xxxx010
ETH20b1010411'b0100xxxx011
DAP0b1111011'b00000000001

6.5 TZC application programming examples

A simple application example is shown Figure 9: TZC example 1:

Figure 9. TZC example 1

Diagram of TZC address space regions. A large dashed box labeled 'Trustzone r/w secure' contains a smaller dashed box labeled 'non-secure and access by all masters'. Inside the non-secure box is a gray bar labeled 'region1'. Below it is a light gray bar labeled 'region0' that spans the entire width of the secure box. An arrow points to region0 with the text: 'Region0: - Always enabled - covers the whole address range'. The code 'MSv45033V1' is in the bottom right corner.
Diagram of TZC address space regions. A large dashed box labeled 'Trustzone r/w secure' contains a smaller dashed box labeled 'non-secure and access by all masters'. Inside the non-secure box is a gray bar labeled 'region1'. Below it is a light gray bar labeled 'region0' that spans the entire width of the secure box. An arrow points to region0 with the text: 'Region0: - Always enabled - covers the whole address range'. The code 'MSv45033V1' is in the bottom right corner.

In this example the secure world has access to whole DDR range, and all non-secure masters have permission to access address ≥ base1.

It is programmed with:

REGION0_ATTRIBUTE.s_wr_en = 1
REGION0_ATTRIBUTE.s_rd_en = 1
REGION0_ID_ACCESS.nsaid_we_en = 0b00000000000
REGION0_ID_ACCESS.nsaid_re_en = 0b00000000000
REGION0_ATTRIBUTE.filter_en = 0b1

The secure world then defines the other regions (1 up to 8) and opens access to all non-secure NSAIDs.

TZC.REGION_BASE_LOW1.base_address_low = `base1
REGION1_TOP_LOW.top_address_low = `base1 + `size1
REGION1_ATTRIBUTE.s_wr_en = 1
REGION1_ATTRIBUTE.s_rd_en = 1
REGION1_ID_ACCESS.nsaid_we_en = 0xFFFF
REGION1_ID_ACCESS.nsaid_re_en = 0xFFFF
REGION1_ATTRIBUTE.filter_en = 0b1

Another application example for the TZC is shown Figure 10: TZC example 2:

Diagram of TZC example 2 illustrating DDR address space partitioning. At top, access ranges are delineated: Trustzone r/w secure for base address, non-secure access by NSAID 0,3,4,5,7,8,9,10,15 for region1, non-secure access by all masters for region2, and non-secure access by NSAID 1,6 for region3. Below these, region1, region2, and region3 are shown along the address line, all spanning above region0 which spans the entire address space and is always enabled.

Figure 10. TZC example 2

Diagram of TZC example 2 illustrating DDR address space partitioning. At top, access ranges are delineated: Trustzone r/w secure for base address, non-secure access by NSAID 0,3,4,5,7,8,9,10,15 for region1, non-secure access by all masters for region2, and non-secure access by NSAID 1,6 for region3. Below these, region1, region2, and region3 are shown along the address line, all spanning above region0 which spans the entire address space and is always enabled.

In this example the secure world only has access to address ≤ base1 and non-secure masters have selective permissions to region1 and 3; region2 is shared by all non-secure masters.

It is programmed with:

REGION0_ATTRIBUTE.s_wr_en = 1
REGION0_ATTRIBUTE.s_rd_en = 1
REGION0_ID_ACCESS.nsaid_we_en = 0x0000
REGION0_ID_ACCESS.nsaid_re_en = 0x0000
REGION0_ATTRIBUTE.filter_en = 0b1

The secure world then defines several regions (1 to 3) and opens access to the non-secure NSAID.

REGION1_TOP_LOW.top_address_low = ‘base1 + ‘size1
REGION1_ATTRIBUTE.s_wr_en = 0
REGION1_ATTRIBUTE.s_rd_en = 0
REGION1_ID_ACCESS.nsaid_we_en = 0x87B9

Note: All shared regions need to be distinct because regions must not overlap.

A third application example for the TZC is shown Figure 11: TZC example 3: This example uses region0 as a blanket and secure or non-secure regions are set as holes. This programming model is more convenient for trapping programming errors.

Figure 11. TZC example 3

Diagram of TZC example 3 showing address space regions and access permissions.

The diagram illustrates the address space configuration for TZC example 3. It shows horizontal regions with the following access permissions from left to right:

Below region1, region2, and region3 is a wide base layer labeled region0 spanning across the whole address range. An arrow indicates the following details for Region0:

MSv45034V1

Diagram of TZC example 3 showing address space regions and access permissions.

In this example the secure world only has access to address ≤ base1 and non-secure masters have selective permissions to region2 and 3.

It is programmed with:

REGION0_ATTRIBUTE.s_wr_en = 0 (default)
REGION0_ATTRIBUTE.s_rd_en = 0 (default)
REGION0_ID_ACCESS.nsaid_we_en = 0x0000 (default)
REGION0_ID_ACCESS.nsaid_re_en = 0x0000 (default)
REGION0_ATTRIBUTE.filter_en = 0b1

The secure world then defines several regions (1 to 3) and opens holes for secure and non-secure access

TZC.REGION_BASE_LOW1.base_address_low = 'base1
REGION1_TOP_LOW.top_address_low = 'base1 + 'size1
REGION1_ATTRIBUTE.s_wr_en = 1
REGION1_ATTRIBUTE.s_rd_en = 1
REGION1_ID_ACCESS.nsaid_we_en = 0x0000
REGION1_ID_ACCESS.nsaid_re_en = 0x0000
REGION1_ATTRIBUTE.filter_en = 0b1
REGION2_BASE_LOW.base_address_low = 'base2
REGION2_TOP_LOW.top_address_low = 'base2 + 'size2
REGION2_ATTRIBUTE.s_wr_en = 0
REGION2_ATTRIBUTE.s_rd_en = 0
REGION2_ID_ACCESS.nsaid_we_en = 0xFFFF
REGION2_ID_ACCESS.nsaid_re_en = 0xFFFF
REGION2_ATTRIBUTE.filter_en = 0b1
REGION3_BASE_LOW.base_address_low = 'base3
REGION3_TOP_LOW.top_address_low = 'base3 + 'size3
REGION3_ATTRIBUTE.s_wr_en = 0
REGION3_ATTRIBUTE.s_rd_en = 0
REGION3_ID_ACCESS.nsaid_we_en = 0x0042
REGION3_ID_ACCESS.nsaid_re_en = 0x0042
REGION3_ATTRIBUTE.filter_en = 0b1

6.5.1 DMA requests

Note: TZC does not support DMA interface.

6.5.2 Interrupts

Note: TZC is asserting interrupt: tzcint when some security checks failed.

6.6 TZC registers

TZC registers are accessed only by words (32-bit).

6.6.1 TZC configuration register (TZC_BUILD_CONFIG)

Address offset: 0x000

Reset value: 0x0000 1F08

Provides information about TZC configuration.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.NO_OF_FILTERSRes.Res.Res.Res.Res.Res.Res.Res.
r
1514131211109876543210
Res.Res.ADDRESS_WIDTH[5:0]Res.Res.Res.NO_OF_REGIONS[4:0]
rrrrrrrrrrr

Bits 31:26 Reserved, must be kept at reset value.

Bit 25 Reserved, must be kept at reset value.

Bit 24 NO_OF_FILTERS: Number of filters

0x0: 1 filter

Bits 23:14 Reserved, must be kept at reset value.

Bits 13:8 ADDRESS_WIDTH[5:0]: Address width

0x1F: 32-bit address width

Others: Reserved

Bits 7:5 Reserved, must be kept at reset value.

Bits 4:0 NO_OF_REGIONS[4:0]: Number of regions

0x8: 9 regions

Others: Reserved

6.6.2 TZC action register (TZC_ACTION)

Address offset: 0x004

Reset value: 0x0000 0000

Controls interrupt and bus error response behavior when regions permission failures occur.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REACTION_VALUE[1:0]
rwrw

Bits 31:2 Reserved, must be kept at reset value.

Bits 1:0 REACTION_VALUE[1:0]: Permission failure reaction
Controls how TZC signals region permission failure.
0: set tzcint low and issue OKAY on the bus
1: set tzcint low and issue DECERR on the bus
2: set tzcint high and issue OKAY on the bus
3: set tzcint high and issue DECERR on the bus

6.6.3 TZC gate keeper register (TZC_GATE_KEEPER)

Address offset: 0x008

Reset value: 0x0000 0000

Provides control and status for the gate keeper in the implemented filter unit.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OPENS
TAT
r
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OPEN
REQ
rw

Bits 31:18 Reserved, must be kept at reset value.

Bit 17 Reserved, must be kept at reset value.

Bit 16 OPENSTAT: Gate keeper status for filter
0: filter is opened
1: filter is closed

Bits 15:2 Reserved, must be kept at reset value.

Bit 1 Reserved, must be kept at reset value.

Bit 0 OPENREQ: Gate keeper open request for filter
0: request filter to open
1: request filter to close

ST logo
ST logo

6.6.4 TZC speculation control register (TZC_SPECULATION_CTRL)

Address offset: 0x00C

Reset value: 0x0000 0000

Controls read and write access speculation.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WRITE
SPEC_
DISA
BLE
READ
SPEC_
DISA
BLE
rwrw

Bits 31:2 Reserved, must be kept at reset value.

Bit 1 WRITESPEC_DISABLE: Write access speculation disable

0: write access speculation enabled

1: write access speculation disabled

Bit 0 READSPEC_DISABLE: Read access speculation disable

0: read access speculation enabled

1: read access speculation disabled

6.6.5 TZC interrupt status register (TZC_INT_STATUS)

Address offset: 0x010

Reset value: 0x0000 0000

Contains the status of the interrupt signal, TZCINT, that reports access security violations or region overlap errors.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OVERLAP[1:0]
rr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.OVER
RUN
Res.Res.Res.Res.Res.Res.Res.STATU
S
rr

Bits 31:18 Reserved, must be kept at reset value.

Bits 17:16 OVERLAP[1:0]: Overlap violation for each filter

Bit 17 is for filter 1, bit 16 is for filter 0.

0: interrupt is not asserted

1: interrupt asserted and waiting to be cleared

Bits 15:10 Reserved, must be kept at reset value.

Bit 9 Reserved, must be kept at reset value.

Bit 8 OVERRUN: Permission failure overrun
Two or more regions permission failures for the filter.
0: interrupt is not asserted
1: interrupt asserted and waiting to be cleared

Bits 7:2 Reserved, must be kept at reset value.

Bit 1 Reserved, must be kept at reset value.

Bit 0 STATUS: Interrupt status for the filter.
0: interrupt is not asserted
1: interrupt asserted and waiting to be cleared

6.6.6 TZC interrupt clear register (TZC_INT_CLEAR)

Address offset: 0x014

Reset value: 0x0000 0000

Interrupt clear for filter.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLEAR
w

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 CLEAR: Filter interrupt clear
Write “1” to clear interrupt for each filter.

6.6.7 TZC fail address low register (TZC_FAIL_ADDRESS_LOW)

Address offset: 0x020

Reset value: 0x0000 0000

Address low bits of the first failed access in the filter.

31302928272625242322212019181716
ADDR_STATUS_LOW[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
ADDR_STATUS_LOW[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 ADDR_STATUS_LOW[31:0]: Fail address low bits
Low 32 address bits of the first failed access permission check in the filter.

6.6.8 TZC fail address high register (TZC_FAIL_ADDRESS_HIGH)

Address offset: 0x024

Reset value: 0x0000 0000

Address high bit of the first failed access in the filter.

Note: Not used with 32bit address.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bits 31:0 Reserved, must be kept at reset value.

6.6.9 TZC fail control register (TZC_FAIL_CONTROL)

Address offset: 0x028

Reset value: 0x0000 0000

Status information about the first access that failed a region permission check in the filter.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.DIREC
TION
Res.Res.NON_
SE
CURE
PRIVI
LEGE
Res.Res.Res.Res.
rrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bits 31:25 Reserved, must be kept at reset value.

Bit 24 DIRECTION: Access failure direction

0: Read access failure

1: Write access failure

Bits 23:22 Reserved, must be kept at reset value.

Bit 21 NON_SECURE: Non-secure access failure

0: Secure access failure

1: Non-secure access failure

Bit 20 PRIVILEGE: Privilege access failure

0: Unprivileged access failure

1: Privileged access failure

Bits 19:0 Reserved, must be kept at reset value.

6.6.10 TZC fail ID register (TZC_FAIL_ID)

Address offset: 0x02C

Reset value: 0x0000 0000

Contains the master AXI ARID or AWID of the first access that failed a region permission check in the filter unit. This occurs even if the ACTION register is set to not drive the interrupt signal.

Note: AXI ID mapping is described in Table 26: NSAID and AXI_ID mapping.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.ID[10:0]
rrrrrrrrrrr

Bits 31:11 Reserved, must be kept at reset value.

Bits 10:0 ID[10:0]: AXI fail ID
Return the AXI ID of the first fail.

6.6.11 TZC region 0 base address low register (TZC_REGION_BASE_LOW0)

Address offset: 0x100

Reset value: 0x0000 0000

Base address low for region 0.

31302928272625242322212019181716
BASE_ADDRESS_LOW[19:4]
rrrrrrrrrrrrrrrr
1514131211109876543210
BASE_ADDRESS_LOW[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rrrr

Bits 31:12 BASE_ADDRESS_LOW[19:0]: base address bits[31:12] for region 0
0x00000: fixed value for region 0
Others: Reserved

Bits 11:0 Reserved, must be kept at reset value.

6.6.12 TZC region x base address high register (TZC_REGION_BASE_HIGHx)

Address offset: 0x104+0x20*x, (x = 0 to 8)

Reset value: 0x0000 0000

Base address high are not used with 32-bit address.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bits 31:0 Reserved, must be kept at reset value.

6.6.13 TZC region 0 top address low register (TZC_REGION_TOP_LOW0)

Address offset: 0x108

Reset value: 0xFFFF FFFF

Top address bits [31:12] for region 0.

31302928272625242322212019181716
TOP_ADDRESS_LOW[19:4]
rrrrrrrrrrrrrrrr
1514131211109876543210
TOP_ADDRESS_LOW[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rrrr

Bits 31:12 TOP_ADDRESS_LOW[19:0]: Top address bits [31:12] of region 0

0xFFFFF: fixed value for region 0

Others: Reserved

Bits 11:0 Reserved, must be kept at reset value.

6.6.14 TZC region x top address high register (TZC_REGION_TOP_HIGHx)

Address offset: 0x10C + 0x20 * x, (x= 0 to 8)

Reset value: 0x0000 0000

Top address high of region are not used with 32-bit address.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bits 31:0 Reserved, must be kept at reset value.

6.6.15 TZC region 0 attribute register (TZC_REGION_ATTRIBUTE0)

Address offset: 0x110

Reset value: 0x0000 0003

Region 0 attributes.

31302928272625242322212019181716
S_WR_ENS_RD_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FILTER_EN
r

Bit 31 S_WR_EN: Secure global write enable
0: secure write to the region are not allowed
1: permit secure write into the region

Bit 30 S_RD_EN: Secure global read enable
0: secure read to the region are not allowed
1: permit secure read into the region

Bits 29:2 Reserved, must be kept at reset value.

Bit 1 Reserved, must be kept at reset value.

Bit 0 FILTER_EN: Region enable for the filter
0: Reserved
1: enable filter for the region

Note: For region 0 the FILTER_EN bit is '1' and cannot be modified.

6.6.16 TZC region x ID access register (TZC_REGION_ID_ACCESSx)

Address offset: 0x114+0x20*x, (x = 0 to 8)

Reset value: 0x0000 0000

Region non-secure access based on NSAID.

31302928272625242322212019181716
NSAID_WR_EN[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
NSAID_RD_EN[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 NSAID_WR_EN[15:0]: Region write enable for each NSAID
Bit 16 is associated to NSAID = 0 .. bit 31 is associated to NSAID = 15
0: forbids write non-secure to the region for this NSAID
1: permits write non-secure to the region for this NSAID

Bits 15:0 NSAID_RD_EN[15:0]: Region read enable for each NSAID
Bit 0 is associated to NSAID = 0 ... bit 15 is associated to NSAID = 15.
0: forbids read non-secure to the region for this NSAID
1: permits read non-secure to the region for this NSAID

6.6.17 TZC region x base address low register (TZC_REGION_BASE_LOWx)

Address offset: 0x120+0x20*(x-1), (x = 1 to 8)

Reset value: 0x0000 0000

Base address low for regions 1 to 8.

31302928272625242322212019181716
BASE_ADDRESS_LOW[19:4]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
BASE_ADDRESS_LOW[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrw

Bits 31:12 BASE_ADDRESS_LOW[19:0]: Base address bits[31:12] for region x

Bits 11:0 Reserved, must be kept at reset value.

6.6.18 TZC region x top address low register (TZC_REGION_TOP_LOWx)

Address offset: 0x128 + 0x20 * (x - 1), (x = 1 to 8)

Reset value: 0x0000 0FFF

Top address bits [31:12] for region x.

31302928272625242322212019181716
TOP_ADDRESS_LOW[19:4]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TOP_ADDRESS_LOW[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrw

Bits 31:12 TOP_ADDRESS_LOW[19:0]: Top address bits [31:12] of region x

Bits 11:0 Reserved, must be kept at reset value.

6.6.19 TZC region x attribute register (TZC_REGION_ATTRIBUTEEx)

Address offset: 0x130 + 0x20 * (x-1), (x = 1 to 8)

Reset value: 0x0000 0000

Region x attributes.

31302928272625242322212019181716
S_WR_ENS_RD_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FILTER_EN
rw

Bit 31 S_WR_EN: Secure global write enable 0: secure write to the region are not allowed 1: permit secure write into the region

Bit 30 S_RD_EN: Secure global read enable 0: secure read to the region are not allowed 1: permit secure read into the region

Bits 29:2 Reserved, must be kept at reset value.

Bit 1 Reserved, must be kept at reset value.

Bit 0 FILTER_EN: Region enable for the filter 0: disable filter for the region 1: enable filter for the region

ST logo
ST logo

6.6.20 TZC peripheral ID 4 register (TZC_PID4)

Address offset: 0xFD0

Reset value: 0x0000 0004

Peripheral ID 4.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_4[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PER_ID_4[7:0]: Peripheral ID 4

6.6.21 TZC peripheral ID 5 register (TZC_PID5)

Address offset: 0xFD4

Reset value: 0x0000 0000

Peripheral ID 5.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_5[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PER_ID_5[7:0]: Peripheral ID 5

6.6.22 TZC peripheral ID 6 register (TZC_PID6)

Address offset: 0xFD8

Reset value: 0x0000 0000

Peripheral ID 6.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_6[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PER_ID_6[7:0]: Peripheral ID 6

6.6.23 TZC peripheral ID 7 register (TZC_PID7)

Address offset: 0xFDC

Reset value: 0x0000 0000

Peripheral ID 7.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_7[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PER_ID_7[7:0]: Peripheral ID 7

6.6.24 TZC peripheral ID 0 register (TZC_PID0)

Address offset: 0xFE0

Reset value: 0x0000 0060

Peripheral ID 0.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_0[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PER_ID_0[7:0]: Peripheral ID 0

6.6.25 TZC peripheral ID 1 register (TZC_PID1)

Address offset: 0xFE4

Reset value: 0x0000 00B4

Peripheral ID 1.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_1[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PER_ID_1[7:0] : Peripheral ID 1

6.6.26 TZC peripheral ID 2 register (TZC_PID2)

Address offset: 0xFE8

Reset value: 0x0000 002B

Peripheral ID 2.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_2[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PER_ID_2[7:0] : Peripheral ID 2

6.6.27 TZC peripheral ID 3 register (TZC_PID3)

Address offset: 0xFEC

Reset value: 0x0000 0000

Peripheral ID 3.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_3[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PER_ID_3[7:0]: Peripheral ID 3

6.6.28 TZC component ID 0 register (TZC_CID0)

Address offset: 0xFF0

Reset value: 0x0000 000D

Component ID 0.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.COMP_ID_0[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 COMP_ID_0[7:0]: Component ID 0

6.6.29 TZC component ID 1 register (TZC_CID1)

Address offset: 0xFF4

Reset value: 0x0000 00F0

Component ID 1.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.COMP_ID_1[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 COMP_ID_1[7:0]: Component ID 0

6.6.30 TZC component ID 2 register (TZC_CID2)

Address offset: 0xFF8

Reset value: 0x0000 0005

Component ID 2.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.COMP_ID_2[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 COMP_ID_2[7:0]: Component ID 2

6.6.31 TZC component ID 3 register (TZC_CID3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

Component ID 3.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.COMP_ID_3[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 COMP_ID_3[7:0]: Component ID 3

6.6.32 TZC register map

Table 21. TZC register map and reset values

OffsetRegister name
reset value
Register size
313029282726252423222120191817161514131211109876543210
0x000TZC_BUILD_CONFIGRes.Res.Res.Res.Res.Res.Res.NO_OF_FILTERSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.ADDRESS_WIDTH[5:0]Res.Res.Res.NO_OF_REGIONS[4:0]
Reset value001111101000
0x004TZC_ACTIONRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REACTION_VALUE[1:0]
Reset value000
0x008TZC_GATE_KEEPERRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OPENSTATRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OPENREQ0
Reset value000
0x00CTZC_SPECULATION_CTRLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WRITESPEC_DISABLEREADSPEC_DISABLE
Reset value0000
0x010TZC_INT_STATUSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OVERLAPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STATUS
Reset value0000
0x014TZC_INT_CLEARRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLEAR
Reset value00
0x018 - 0x01CReservedRes.
0x020TZC_FAIL_ADDRESS_LOWADDR_STATUS_LOW[31:0]
Reset value00000000000000000000000000000000
0x024TZC_FAIL_ADDRESS_HIGHFAIL_ADDRESS_HIGH[31:0]
Reset value00000000000000000000000000000000

Table 21. TZC register map and reset values (continued)

OffsetRegister name
reset value
Register size
313029282726252423222120191817161514131211109876543210
0x028TZC_FAIL_CONTROLRes.Res.Res.Res.Res.Res.Res.DIRECTIONRes.Res.NON_SECUREPRIVILEGERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000
0x02CTZC_FAIL_IDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ID[10:0]
Reset value00000000000
0x030 - 0x0FCReservedRes.
0x100TZC_REGION_BASE_LOW0BASE_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00000000000000000000
0x104TZC_REGION_BASE_HIGH0REGION_BASE_HIGH0[31:0]
Reset value00000000000000000000000000000000
0x108TZC_REGION_TOP_LOW0TOP_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value11111111111111111111
0x10CTZC_REGION_TOP_HIGH0REGION_TOP_HIGH0[31:0]
Reset value00000000000000000000000000000000
0x110TZC_TREGION_ATTRIBUTE0S_WR_ENS_RD_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FILTER_EN
Reset value0001
0x114TZC_REGION_ID_ACCESS0NSAID_WR_EN[15:0]NSAID_RD_EN[15:0]
Reset value00000000000000000000000000000000
0x118 - 0x11CReservedRes.
0x120TZC_REGION_BASE_LOW1BASE_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00000000000000000000
0x124TZC_REGION_BASE_HIGH1REGION_BASE_HIGH1[31:0]
Reset value00000000000000000000000000000000
0x128TZC_REGION_TOP_LOW1TOP_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00000000000000000000
0x12CTZC_REGION_TOP_HIGH1REGION_TOP_HIGH1[31:0]
Reset value00000000000000000000000000000000
0x130TZC_REGION_ATTRIBUTE1S_WR_ENS_RD_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FILTER_EN
Reset value000
0x134TZC_REGION_ID_ACCESS1NSAID_WR_EN[15:0]NSAID_RD_EN[15:0]
Reset value00000000000000000000000000000000
0x138 - 0x13CReservedRes.

Table 21. TZC register map and reset values (continued)

OffsetRegister name
reset value
Register size
313029282726252423222120191817161514131211109876543210
0x140TZC_REGION_BASE_LOW2BASE_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000000000000000000000
0x144TZC_REGION_BASE_HIGH2REGION_BASE_HIGH2[31:0]
Reset value00000000000000000000000000000000
0x148TZC_REGION_TOP_LOW2TOP_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000000000000000000000
0x14CTZC_REGION_TOP_HIGH2REGION_TOP_HIGH2[31:0]
Reset value00000000000000000000000000000000
0x150TZC_REGION_ATTRIBUTE2S_WR_ENS_RD_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FILTER_EN
Reset value000
0x154TZC_REGION_ID_ACCESS2NSAID_WR_EN[15:0]NSAID_RD_EN[15:0]
Reset value00000000000000000000000000000000
0x158 - 0x15CReservedRes.
0x160TZC_REGION_BASE_LOW3BASE_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000000000000000000000
0x164TZC_REGION_BASE_HIGH3REGION_BASE_HIGH3[31:0]
Reset value00000000000000000000000000000000
0x168TZC_REGION_TOP_LOW3TOP_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000000000000000000000
0x16CTZC_REGION_TOP_HIGH3REGION_TOP_HIGH3[31:0]
Reset value00000000000000000000000000000000
0x170TZC_REGION_ATTRIBUTE3S_WR_ENS_RD_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FILTER_EN
Reset value000
0x174TZC_REGION_ID_ACCESS3NSAID_WR_EN[15:0]NSAID_RD_EN[15:0]
Reset value00000000000000000000000000000000
0x178 - 0x17CReservedRes.
0x180TZC_REGION_BASE_LOW4BASE_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000000000000000000000
0x184TZC_REGION_BASE_HIGH4REGION_BASE_HIGH4[31:0]
Reset value00000000000000000000000000000000
0x188TZC_REGION_TOP_LOW4TOP_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000000000000000000000

Table 21. TZC register map and reset values (continued)

OffsetRegister name
reset value
Register size
313029282726252423222120191817161514131211109876543210
0x18CTZC_REGION_TOP_HIGH4REGION_TOP_HIGH4[31:0]
Reset value00000000000000000000000000000000
0x190TZC_REGION_ATTRIBUTE4S_WR_ENS_RD_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FILTER_EN
Reset value000
0x194TZC_REGION_ID_ACCESS4NSAID_WR_EN[15:0]NSAID_RD_EN[15:0]
Reset value00000000000000000000000000000000
0x198 - 0x19CReservedRes.
0x1A0TZC_REGION_BASE_LOW5BASE_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00000000000000000000
0x1A4TZC_REGION_BASE_HIGH5REGION_BASE_HIGH5[31:0]
Reset value00000000000000000000000000000000
0x1A8TZC_REGION_TOP_LOW5TOP_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00000000000000000000
0x1ACTZC_REGION_TOP_HIGH5REGION_TOP_HIGH5[31:0]
Reset value00000000000000000000000000000000
0x1B0TZC_REGION_ATTRIBUTE5S_WR_ENS_RD_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FILTER_EN
Reset value000
0x1B4TZC_REGION_ID_ACCESS5NSAID_WR_EN[15:0]NSAID_RD_EN[15:0]
Reset value00000000000000000000000000000000
0x1B8 - 0x1BCReservedRes.
0x1C0TZC_REGION_BASE_LOW6BASE_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00000000000000000000
0x1C4TZC_REGION_BASE_HIGH6REGION_BASE_HIGH6[31:0]
Reset value00000000000000000000000000000000
0x1C8TZC_REGION_TOP_LOW6TOP_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00000000000000000000
0x1CCTZC_REGION_TOP_HIGH6REGION_TOP_HIGH6[31:0]
Reset value00000000000000000000000000000000
0x1D0TZC_REGION_ATTRIBUTE6S_WR_ENS_RD_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FILTER_EN
Reset value000
0x1D4TZC_REGION_ID_ACCESS6NSAID_WR_EN[15:0]NSAID_RD_EN[15:0]
Reset value00000000000000000000000000000000

Table 21. TZC register map and reset values (continued)

OffsetRegister name
reset value
Register size
313029282726252423222120191817161514131211109876543210
0x1D8 -
0x1DC
ReservedRes.
0x1E0TZC_REGION_BASE_LOW7BASE_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00000000000000000000
0x1E4TZC_REGION_BASE_HIGH7REGION_BASE_HIGH7[31:0]
Reset value0000000000000000000000000000000
0x1E8TZC_REGION_TOP_LOW7TOP_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00000000000000000000
0x1ECTZC_REGION_TOP_HIGH7REGION_TOP_HIGH7[31:0]
Reset value0000000000000000000000000000000
0x1F0TZC_REGION_ATTRIBUTE7S_WR_ENS_RD_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FILTER_EN
Reset value000
0x1F4TZC_REGION_ID_ACCESS7NSAID_WR_EN[15:0]NSAID_RD_EN[15:0]
Reset value0000000000000000000000000000000
0x1F8 -
0x1FC
ReservedRes.
0x200TZC_REGION_BASE_LOW8BASE_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00000000000000000000
0x204TZC_REGION_BASE_HIGH8REGION_BASE_HIGH8[31:0]
Reset value0000000000000000000000000000000
0x208TZC_REGION_TOP_LOW8TOP_ADDRESS_LOW[19:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00000000000000000000
0x20CTZC_REGION_TOP_HIGH8REGION_TOP_HIGH8[31:0]
Reset value0000000000000000000000000000000
0x210TZC_REGION_ATTRIBUTE8S_WR_ENS_RD_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FILTER_EN
Reset value000
0x214TZC_REGION_ID_ACCESS8NSAID_WR_EN[15:0]NSAID_RD_EN[15:0]
Reset value0000000000000000000000000000000
0x218 -
0xFCC
ReservedRes.
0xFD0TZC_PID4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_4[7:0]
Reset value00000100
0xFD4TZC_PID5Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_5[7:0]
Reset value00000000

Table 21. TZC register map and reset values (continued)

OffsetRegister name
reset value
Register size
313029282726252423222120191817161514131211109876543210
0xFD8TZC_DRASC_PID6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_6[7:0]
Reset value00000000
0xFDCTZC_PID7Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_7[7:0]
Reset value00000000
0xFE0TZC_PID0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_0[7:0]
Reset value01100000
0xFE4TZC_PID1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_1[7:0]
Reset value10110100
0xFE8TZC_DRASC_PID2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_2[7:0]
Reset value00101011
0xFECTZC_PID3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PER_ID_3[7:0]
Reset value00000000
0xFF0TZC_CID0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.COMP_ID_0[7:0]
Reset value00001101
0xFF4TZC_CID1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.COMP_ID_1[7:0]
Reset value11110000
0xFF8TZC_CID2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.COMP_ID_2[7:0]
Reset value00000101
0xFFCTZC_CID3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.COMP_ID_3[7:0]
Reset value10110001

Refer to Section 2.3 on page 101 for the register boundary addresses.