arm_dev_rotpk.S 862 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2021, ARM Limited. All rights reserved.
3
4
5
6
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

7
8
9
10
/* diphda platform provides custom values for the macros defined in
 * arm_def.h , so only platform_def.h needs to be included
 */
#if !defined(TARGET_PLATFORM_FVP) && !defined(TARGET_PLATFORM_FPGA)
11
#include "plat/arm/common/arm_def.h"
12
13
14
#else
#include <platform_def.h>
#endif
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

	.global arm_rotpk_header
	.global arm_rotpk_header_end
	.section .rodata.arm_rotpk_hash, "a"

arm_rotpk_header:
	.byte 0x30, 0x31, 0x30, 0x0D, 0x06, 0x09, 0x60, 0x86, 0x48
	.byte 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x05, 0x00, 0x04, 0x20
arm_rotpk_header_len:

#ifdef ARM_ROTPK_HASH
	.global arm_rotpk_hash_end
	.incbin ARM_ROTPK_HASH
arm_rotpk_hash_end:
#endif

.if ARM_ROTPK_HEADER_LEN != arm_rotpk_header_len - arm_rotpk_header
.error "Invalid ROTPK header length."
.endif