Skip to content

Commit 533b131

Browse files
committed
soc: microchip: sama7g5: sam: update MMU setting for sama7g5 TRNG
Update TRNG registers with strong ordered, read and write access. Signed-off-by: Tony Han <tony.han@microchip.com>
1 parent 6d9feca commit 533b131

File tree

1 file changed

+5
-0
lines changed
  • soc/microchip/sam/sama7g5

1 file changed

+5
-0
lines changed

soc/microchip/sam/sama7g5/soc.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ static const struct arm_mmu_region mmu_regions[] = {
3030

3131
MMU_REGION_FLAT_ENTRY("sckc", SCKC_BASE_ADDRESS, 0x4,
3232
MT_STRONGLY_ORDERED | MPERM_R | MPERM_W),
33+
34+
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(trng))
35+
MMU_REGION_FLAT_ENTRY("trng", TRNG_BASE_ADDRESS, 0x100,
36+
MT_STRONGLY_ORDERED | MPERM_R | MPERM_W),
37+
#endif
3338
};
3439

3540
const struct arm_mmu_config mmu_config = {

0 commit comments

Comments
 (0)