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
02ad9cd6
Commit
02ad9cd6
authored
Feb 25, 2020
by
Mark Dykes
Committed by
TrustedFirmware Code Review
Feb 25, 2020
Browse files
Merge "allwinner: Adjust SRAM A2 base to include the ARISC vectors" into integration
parents
cfcf4e9d
ae3fe6e3
Changes
4
Hide whitespace changes
Inline
Side-by-side
plat/allwinner/common/include/platform_def.h
View file @
02ad9cd6
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
#include <sunxi_mmap.h>
#include <sunxi_mmap.h>
#define BL31_BASE SUNXI_SRAM_A2_BASE
#define BL31_BASE
(
SUNXI_SRAM_A2_BASE
+ 0x4000)
#define BL31_LIMIT (SUNXI_SRAM_A2_BASE + SUNXI_SRAM_A2_SIZE)
#define BL31_LIMIT (SUNXI_SRAM_A2_BASE + SUNXI_SRAM_A2_SIZE)
/* Overwrite U-Boot SPL, but reserve the first page for the SPL header. */
/* Overwrite U-Boot SPL, but reserve the first page for the SPL header. */
...
...
plat/allwinner/common/sunxi_common.c
View file @
02ad9cd6
...
@@ -175,7 +175,7 @@ DEFINE_BAKERY_LOCK(arisc_lock);
...
@@ -175,7 +175,7 @@ DEFINE_BAKERY_LOCK(arisc_lock);
*/
*/
void
sunxi_execute_arisc_code
(
uint32_t
*
code
,
size_t
size
,
uint16_t
param
)
void
sunxi_execute_arisc_code
(
uint32_t
*
code
,
size_t
size
,
uint16_t
param
)
{
{
uintptr_t
arisc_reset_vec
=
SUNXI_SRAM_A2_BASE
-
0x4000
+
0x100
;
uintptr_t
arisc_reset_vec
=
SUNXI_SRAM_A2_BASE
+
0x100
;
do
{
do
{
bakery_lock_get
(
&
arisc_lock
);
bakery_lock_get
(
&
arisc_lock
);
...
...
plat/allwinner/sun50i_a64/include/sunxi_mmap.h
View file @
02ad9cd6
/*
/*
* Copyright (c) 2017-201
8
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017-201
9
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
#define SUNXI_SRAM_SIZE 0x00044000
#define SUNXI_SRAM_SIZE 0x00044000
#define SUNXI_SRAM_A1_BASE 0x00010000
#define SUNXI_SRAM_A1_BASE 0x00010000
#define SUNXI_SRAM_A1_SIZE 0x00008000
#define SUNXI_SRAM_A1_SIZE 0x00008000
#define SUNXI_SRAM_A2_BASE 0x0004
4
000
#define SUNXI_SRAM_A2_BASE 0x0004
0
000
#define SUNXI_SRAM_A2_SIZE 0x0001
0
000
#define SUNXI_SRAM_A2_SIZE 0x0001
4
000
#define SUNXI_SRAM_C_BASE 0x00018000
#define SUNXI_SRAM_C_BASE 0x00018000
#define SUNXI_SRAM_C_SIZE 0x0001c000
#define SUNXI_SRAM_C_SIZE 0x0001c000
#define SUNXI_DEV_BASE 0x01000000
#define SUNXI_DEV_BASE 0x01000000
...
...
plat/allwinner/sun50i_h6/include/sunxi_mmap.h
View file @
02ad9cd6
/*
/*
* Copyright (c) 2017-201
8
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017-201
9
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
#define SUNXI_SRAM_SIZE 0x000f8000
#define SUNXI_SRAM_SIZE 0x000f8000
#define SUNXI_SRAM_A1_BASE 0x00020000
#define SUNXI_SRAM_A1_BASE 0x00020000
#define SUNXI_SRAM_A1_SIZE 0x00008000
#define SUNXI_SRAM_A1_SIZE 0x00008000
#define SUNXI_SRAM_A2_BASE 0x0010
4
000
#define SUNXI_SRAM_A2_BASE 0x0010
0
000
#define SUNXI_SRAM_A2_SIZE 0x0001
4
000
#define SUNXI_SRAM_A2_SIZE 0x0001
8
000
#define SUNXI_SRAM_C_BASE 0x00028000
#define SUNXI_SRAM_C_BASE 0x00028000
#define SUNXI_SRAM_C_SIZE 0x0001e000
#define SUNXI_SRAM_C_SIZE 0x0001e000
#define SUNXI_DEV_BASE 0x01000000
#define SUNXI_DEV_BASE 0x01000000
...
...
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