tony.xie | 54973e7 | 2017-04-24 16:18:10 +0800 | [diff] [blame] | 1 | /* |
Lin Huang | 30e4339 | 2017-05-04 16:02:45 +0800 | [diff] [blame] | 2 | * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. |
tony.xie | 54973e7 | 2017-04-24 16:18:10 +0800 | [diff] [blame] | 3 | * |
dp-arm | d91aaae | 2017-05-10 15:16:15 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
tony.xie | 54973e7 | 2017-04-24 16:18:10 +0800 | [diff] [blame] | 5 | */ |
| 6 | #ifndef __ROCKCHIP_PLAT_LD_S__ |
| 7 | #define __ROCKCHIP_PLAT_LD_S__ |
| 8 | |
| 9 | MEMORY { |
Lin Huang | 30e4339 | 2017-05-04 16:02:45 +0800 | [diff] [blame] | 10 | PMUSRAM (rwx): ORIGIN = PMUSRAM_BASE, LENGTH = PMUSRAM_RSIZE |
tony.xie | 54973e7 | 2017-04-24 16:18:10 +0800 | [diff] [blame] | 11 | } |
| 12 | |
| 13 | SECTIONS |
| 14 | { |
Lin Huang | 30e4339 | 2017-05-04 16:02:45 +0800 | [diff] [blame] | 15 | . = PMUSRAM_BASE; |
tony.xie | 54973e7 | 2017-04-24 16:18:10 +0800 | [diff] [blame] | 16 | |
| 17 | /* |
Lin Huang | 30e4339 | 2017-05-04 16:02:45 +0800 | [diff] [blame] | 18 | * pmu_cpuson_entrypoint request address |
| 19 | * align 64K when resume, so put it in the |
| 20 | * start of pmusram |
tony.xie | 54973e7 | 2017-04-24 16:18:10 +0800 | [diff] [blame] | 21 | */ |
Lin Huang | 30e4339 | 2017-05-04 16:02:45 +0800 | [diff] [blame] | 22 | .text_pmusram : { |
| 23 | ASSERT(. == ALIGN(64 * 1024), |
| 24 | ".pmusram.entry request 64K aligned."); |
| 25 | *(.pmusram.entry) |
| 26 | __bl31_pmusram_text_start = .; |
| 27 | *(.pmusram.text) |
| 28 | *(.pmusram.rodata) |
| 29 | __bl31_pmusram_text_end = .; |
| 30 | __bl31_pmusram_data_start = .; |
| 31 | *(.pmusram.data) |
| 32 | __bl31_pmusram_data_end = .; |
tony.xie | 54973e7 | 2017-04-24 16:18:10 +0800 | [diff] [blame] | 33 | |
Lin Huang | 30e4339 | 2017-05-04 16:02:45 +0800 | [diff] [blame] | 34 | } >PMUSRAM |
tony.xie | 54973e7 | 2017-04-24 16:18:10 +0800 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | #endif /* __ROCKCHIP_PLAT_LD_S__ */ |