Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
b449642a
Commit
b449642a
authored
5 years ago
by
Manish Pandey
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "allwinner: Clean up MMU setup" into integration
parents
004c9228
ddb4c9e0
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
arm_cca_v0.2
arm_cca_v0.1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plat/allwinner/common/include/platform_def.h
+1
-1
plat/allwinner/common/include/platform_def.h
plat/allwinner/common/sunxi_common.c
+4
-7
plat/allwinner/common/sunxi_common.c
with
5 additions
and
8 deletions
+5
-8
plat/allwinner/common/include/platform_def.h
View file @
b449642a
...
...
@@ -32,7 +32,7 @@
#define CACHE_WRITEBACK_SHIFT 6
#define CACHE_WRITEBACK_GRANULE (1 << CACHE_WRITEBACK_SHIFT)
#define MAX_MMAP_REGIONS (
4
+ PLATFORM_MMAP_REGIONS)
#define MAX_MMAP_REGIONS (
3
+ PLATFORM_MMAP_REGIONS)
#define MAX_XLAT_TABLES 1
#define PLAT_MAX_PWR_LVL_STATES U(2)
...
...
This diff is collapsed.
Click to expand it.
plat/allwinner/common/sunxi_common.c
View file @
b449642a
...
...
@@ -20,15 +20,15 @@
static
const
mmap_region_t
sunxi_mmap
[
PLATFORM_MMAP_REGIONS
+
1
]
=
{
MAP_REGION_FLAT
(
SUNXI_SRAM_BASE
,
SUNXI_SRAM_SIZE
,
MT_
MEMORY
|
MT_RW
|
MT_SECURE
),
MT_
RW_DATA
|
MT_SECURE
),
MAP_REGION_FLAT
(
SUNXI_DEV_BASE
,
SUNXI_DEV_SIZE
,
MT_DEVICE
|
MT_RW
|
MT_SECURE
),
MT_DEVICE
|
MT_RW
|
MT_SECURE
|
MT_EXECUTE_NEVER
),
MAP_REGION
(
SUNXI_DRAM_BASE
,
SUNXI_DRAM_VIRT_BASE
,
SUNXI_DRAM_SEC_SIZE
,
MT_MEMORY
|
MT_RW
|
MT_SECURE
),
MT_RW
_DATA
|
MT_SECURE
),
MAP_REGION
(
PLAT_SUNXI_NS_IMAGE_OFFSET
,
SUNXI_DRAM_VIRT_BASE
+
SUNXI_DRAM_SEC_SIZE
,
SUNXI_DRAM_MAP_SIZE
,
MT_
MEMORY
|
MT_RO
|
MT_NS
),
MT_
RO_DATA
|
MT_NS
),
{},
};
...
...
@@ -48,9 +48,6 @@ uintptr_t plat_get_ns_image_entrypoint(void)
void
sunxi_configure_mmu_el3
(
int
flags
)
{
mmap_add_region
(
BL31_BASE
,
BL31_BASE
,
BL31_LIMIT
-
BL31_BASE
,
MT_MEMORY
|
MT_RW
|
MT_SECURE
);
mmap_add_region
(
BL_CODE_BASE
,
BL_CODE_BASE
,
BL_CODE_END
-
BL_CODE_BASE
,
MT_CODE
|
MT_SECURE
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help