Files
Linux_Drivers/u-boot-2021.10/arch/arm/include/asm/arch-armv8/boot0.h
sam.xiang 3a4bcfca2f [uboot] porting cvitek asic chips:
1. add cvitek folders to u-boot-2021.10
	2. add cv183x/cv182x part
	3. add cv181x/cv180x part

Change-Id: I6dc2e5ff509dbab16bd60bfb3fd61852da5e01f6
2023-03-10 20:31:12 +08:00

29 lines
531 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* CVITEK u-boot header
*/
#ifndef __BOOT0_H__
#define __BOOT0_H__
/* BOOT0 header information */
b boot0_time_recode
.word 0x33334c42 /* b'BL33' */
.word 0xdeadbee1 /* CKSUM */
.word 0xdeadbee4 /* SIZE */
.quad CONFIG_SYS_TEXT_BASE /* RUNADDR */
.word 0xdeadbee6
b boot0_time_recode
/* BOOT0 header end */
boot0_time_recode:
mrs x0, cntpct_el0
ldr x1, =BOOT0_START_TIME
str w0, [x1]
b reset
.global BOOT0_START_TIME
BOOT0_START_TIME:
.word 0
#endif /* __BOOT0_H__ */