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
44abf27d
Commit
44abf27d
authored
Jan 08, 2020
by
Manish Pandey
Committed by
TrustedFirmware Code Review
Jan 08, 2020
Browse files
Merge "A5DS: Change boot address to point to DDR address" into integration
parents
8849298c
e343bf13
Changes
3
Show whitespace changes
Inline
Side-by-side
plat/arm/board/a5ds/a5ds_common.c
View file @
44abf27d
/*
/*
* Copyright (c) 2019, Arm Limited. All rights reserved.
* Copyright (c) 2019
-2020
, Arm Limited. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -23,18 +23,18 @@
...
@@ -23,18 +23,18 @@
#ifdef IMAGE_BL1
#ifdef IMAGE_BL1
const
mmap_region_t
plat_arm_mmap
[]
=
{
const
mmap_region_t
plat_arm_mmap
[]
=
{
ARM_MAP_SHARED_RAM
,
ARM_MAP_SHARED_RAM
,
MAP_FLASH1_RW
,
MAP_PERIPHBASE
,
MAP_PERIPHBASE
,
MAP_A5_PERIPHERALS
,
MAP_A5_PERIPHERALS
,
MAP_BOOT_RW
,
{
0
}
{
0
}
};
};
#endif
#endif
#ifdef IMAGE_BL2
#ifdef IMAGE_BL2
const
mmap_region_t
plat_arm_mmap
[]
=
{
const
mmap_region_t
plat_arm_mmap
[]
=
{
ARM_MAP_SHARED_RAM
,
ARM_MAP_SHARED_RAM
,
MAP_FLASH1_RW
,
MAP_PERIPHBASE
,
MAP_PERIPHBASE
,
MAP_A5_PERIPHERALS
,
MAP_A5_PERIPHERALS
,
MAP_BOOT_RW
,
ARM_MAP_NS_DRAM1
,
ARM_MAP_NS_DRAM1
,
{
0
}
{
0
}
};
};
...
...
plat/arm/board/a5ds/fdts/a5ds_tb_fw_config.dts
View file @
44abf27d
/*
/*
* Copyright (c) 2019, Arm Limited. All rights reserved.
* Copyright (c) 2019
-2020
, Arm Limited. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
/* Platform Config */
/* Platform Config */
plat_arm_bl2 {
plat_arm_bl2 {
compatible = "arm,tb_fw";
compatible = "arm,tb_fw";
hw_config_addr = <0x0 0x8
2
000000>;
hw_config_addr = <0x0 0x8
3
000000>;
hw_config_max_size = <0x01000000>;
hw_config_max_size = <0x01000000>;
/* Disable authentication for development */
/* Disable authentication for development */
disable_auth = <0x0>;
disable_auth = <0x0>;
...
...
plat/arm/board/a5ds/include/platform_def.h
View file @
44abf27d
...
@@ -21,14 +21,6 @@
...
@@ -21,14 +21,6 @@
#define ARM_DRAM1_END (ARM_DRAM1_BASE + \
#define ARM_DRAM1_END (ARM_DRAM1_BASE + \
ARM_DRAM1_SIZE - 1)
ARM_DRAM1_SIZE - 1)
#define ARM_NS_DRAM1_BASE ARM_DRAM1_BASE
/*
* The last 2MB is meant to be NOLOAD and will not be zero
* initialized.
*/
#define ARM_NS_DRAM1_SIZE (ARM_DRAM1_SIZE - \
0x00200000)
#define SRAM_BASE 0x2000000
#define SRAM_BASE 0x2000000
#define SRAM_SIZE 0x200000
#define SRAM_SIZE 0x200000
...
@@ -101,16 +93,22 @@
...
@@ -101,16 +93,22 @@
#define A5DS_PRIMARY_CPU 0x0
#define A5DS_PRIMARY_CPU 0x0
#define
FLASH1_BASE UL(0x8000000)
#define
BOOT_BASE ARM_DRAM1_BASE
#define
FLASH1
_SIZE UL(0x2800000)
#define
BOOT
_SIZE UL(0x2800000)
#define MAP_FLASH1_RW MAP_REGION_FLAT(FLASH1_BASE,\
#define ARM_NS_DRAM1_BASE (ARM_DRAM1_BASE + BOOT_SIZE)
FLASH1_SIZE, \
/*
MT_DEVICE | MT_RW | MT_SECURE)
* The last 2MB is meant to be NOLOAD and will not be zero
* initialized.
*/
#define ARM_NS_DRAM1_SIZE (ARM_DRAM1_SIZE - \
BOOT_SIZE - \
0x00200000)
#define MAP_FLASH1_RO MAP_REGION_FLAT(FLASH1_BASE,\
#define MAP_BOOT_RW MAP_REGION_FLAT( \
FLASH1_SIZE, \
BOOT_BASE, \
MT_RO_DATA | MT_SECURE)
BOOT_SIZE, \
MT_DEVICE | MT_RW | MT_SECURE)
#define ARM_MAP_SHARED_RAM MAP_REGION_FLAT( \
#define ARM_MAP_SHARED_RAM MAP_REGION_FLAT( \
A5DS_SHARED_RAM_BASE, \
A5DS_SHARED_RAM_BASE, \
...
@@ -300,11 +298,11 @@
...
@@ -300,11 +298,11 @@
#define MAX_IO_HANDLES 4
#define MAX_IO_HANDLES 4
/* Reserve the last block of flash for PSCI MEM PROTECT flag */
/* Reserve the last block of flash for PSCI MEM PROTECT flag */
#define PLAT_ARM_FIP_BASE
FLASH1
_BASE
#define PLAT_ARM_FIP_BASE
BOOT
_BASE
#define PLAT_ARM_FIP_MAX_SIZE (
FLASH1
_SIZE - V2M_FLASH_BLOCK_SIZE)
#define PLAT_ARM_FIP_MAX_SIZE (
BOOT
_SIZE - V2M_FLASH_BLOCK_SIZE)
#define PLAT_ARM_NVM_BASE
FLASH1
_BASE
#define PLAT_ARM_NVM_BASE
BOOT
_BASE
#define PLAT_ARM_NVM_SIZE (
FLASH1
_SIZE - V2M_FLASH_BLOCK_SIZE)
#define PLAT_ARM_NVM_SIZE (
BOOT
_SIZE - V2M_FLASH_BLOCK_SIZE)
/*
/*
* PL011 related constants
* PL011 related constants
...
...
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