Max Shvetsov | 06dba29 | 2019-12-06 11:50:12 +0000 | [diff] [blame] | 1 | /* |
Vishnu Banavath | 2b651ea | 2022-01-19 18:43:12 +0000 | [diff] [blame] | 2 | * Copyright (c) 2021-2022, ARM Limited. All rights reserved. |
Max Shvetsov | 06dba29 | 2019-12-06 11:50:12 +0000 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Vishnu Banavath | 2b651ea | 2022-01-19 18:43:12 +0000 | [diff] [blame] | 7 | /* corstone1000 platform provides custom values for the macros defined in |
Abdellatif El Khlifi | ad9b8e5 | 2021-04-21 17:20:43 +0100 | [diff] [blame] | 8 | * arm_def.h , so only platform_def.h needs to be included |
| 9 | */ |
| 10 | #if !defined(TARGET_PLATFORM_FVP) && !defined(TARGET_PLATFORM_FPGA) |
Max Shvetsov | 06dba29 | 2019-12-06 11:50:12 +0000 | [diff] [blame] | 11 | #include "plat/arm/common/arm_def.h" |
Abdellatif El Khlifi | ad9b8e5 | 2021-04-21 17:20:43 +0100 | [diff] [blame] | 12 | #else |
| 13 | #include <platform_def.h> |
| 14 | #endif |
Max Shvetsov | 06dba29 | 2019-12-06 11:50:12 +0000 | [diff] [blame] | 15 | |
| 16 | .global arm_rotpk_header |
Max Shvetsov | 06dba29 | 2019-12-06 11:50:12 +0000 | [diff] [blame] | 17 | .section .rodata.arm_rotpk_hash, "a" |
| 18 | |
| 19 | arm_rotpk_header: |
| 20 | .byte 0x30, 0x31, 0x30, 0x0D, 0x06, 0x09, 0x60, 0x86, 0x48 |
| 21 | .byte 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x05, 0x00, 0x04, 0x20 |
| 22 | arm_rotpk_header_len: |
| 23 | |
| 24 | #ifdef ARM_ROTPK_HASH |
| 25 | .global arm_rotpk_hash_end |
| 26 | .incbin ARM_ROTPK_HASH |
| 27 | arm_rotpk_hash_end: |
| 28 | #endif |
| 29 | |
| 30 | .if ARM_ROTPK_HEADER_LEN != arm_rotpk_header_len - arm_rotpk_header |
| 31 | .error "Invalid ROTPK header length." |
| 32 | .endif |