Skip to content
GitLab
Menu
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
7bad6e08
Commit
7bad6e08
authored
Jan 15, 2020
by
Alexei Fedorov
Committed by
TrustedFirmware Code Review
Jan 15, 2020
Browse files
Merge "allwinner: Reenable USE_COHERENT_MEM" into integration
parents
e9ed7fa7
6c281cc3
Changes
3
Hide whitespace changes
Inline
Side-by-side
plat/allwinner/common/allwinner-common.mk
View file @
7bad6e08
...
...
@@ -61,8 +61,5 @@ SEPARATE_NOBITS_REGION := 1
# BL31 gets loaded alongside BL33 (U-Boot) by U-Boot's SPL
RESET_TO_BL31
:=
1
# We are short on memory, so save 3.5KB by not having an extra coherent page.
USE_COHERENT_MEM
:=
0
# This platform is single-cluster and does not require coherency setup.
WARMBOOT_ENABLE_DCACHE_EARLY
:=
1
plat/allwinner/common/include/platform_def.h
View file @
7bad6e08
...
...
@@ -32,7 +32,7 @@
#define CACHE_WRITEBACK_SHIFT 6
#define CACHE_WRITEBACK_GRANULE (1 << CACHE_WRITEBACK_SHIFT)
#define MAX_MMAP_REGIONS (
3
+ PLATFORM_MMAP_REGIONS)
#define MAX_MMAP_REGIONS (
4
+ PLATFORM_MMAP_REGIONS)
#define MAX_XLAT_TABLES 1
#define PLAT_MAX_PWR_LVL_STATES U(2)
...
...
plat/allwinner/common/sunxi_common.c
View file @
7bad6e08
...
...
@@ -57,6 +57,10 @@ void sunxi_configure_mmu_el3(int flags)
mmap_add_region
(
BL_RO_DATA_BASE
,
BL_RO_DATA_BASE
,
BL_RO_DATA_END
-
BL_RO_DATA_BASE
,
MT_RO_DATA
|
MT_SECURE
);
mmap_add_region
(
BL_COHERENT_RAM_BASE
,
BL_COHERENT_RAM_BASE
,
BL_COHERENT_RAM_END
-
BL_COHERENT_RAM_BASE
,
MT_DEVICE
|
MT_RW
|
MT_SECURE
|
MT_EXECUTE_NEVER
);
mmap_add
(
sunxi_mmap
);
init_xlat_tables
();
...
...
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