1. add cvitek folders to u-boot-2021.10 2. add cv183x/cv182x part 3. add cv181x/cv180x part Change-Id: I6dc2e5ff509dbab16bd60bfb3fd61852da5e01f6
32 lines
563 B
C
32 lines
563 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* CVITEK u-boot header
|
|
*/
|
|
|
|
#ifndef __BOOT0_H__
|
|
#define __BOOT0_H__
|
|
|
|
/* BOOT0 header information */
|
|
j boot0_time_recode
|
|
.balign 4
|
|
.word 0x33334c42 /* b'BL33' */
|
|
.word 0xdeadbeea /* CKSUM */
|
|
.word 0xdeadbeeb /* SIZE */
|
|
.quad CONFIG_SYS_TEXT_BASE /* RUNADDR */
|
|
.word 0xdeadbeec
|
|
.balign 4
|
|
j boot0_time_recode
|
|
.balign 4
|
|
/* BOOT0 header end */
|
|
boot0_time_recode:
|
|
csrr x1, time
|
|
la x2, BOOT0_START_TIME
|
|
sw x1, 0(x2)
|
|
j _start_real
|
|
|
|
.global BOOT0_START_TIME
|
|
BOOT0_START_TIME:
|
|
.word 0
|
|
|
|
#endif /* __BOOT0_H__ */
|