]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/karo/txsd/head.S
arm64: add support for Ka-Ro TXSD-410E
[karo-tx-uboot.git] / board / karo / txsd / head.S
1 /*
2  * ARM64 header for proper chain-loading with Little Kernel.
3  *
4  * (C) 2017 Lothar Waßmann <LW@KARO-electronics.de>
5  *   based on board/qualcomm/dragonboard410c/head.S
6  *     (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
7  *
8  * Little Kernel shipped with Dragonboard410C boots standard Linux images for
9  * ARM64. This file adds header that is required to boot U-Boot properly.
10  *
11  * For details see:
12  * https://www.kernel.org/doc/Documentation/arm64/booting.txt
13  *
14  * SPDX-License-Identifier:     GPL-2.0+
15  */
16
17 #include <config.h>
18
19 .global _arm64_header
20 _arm64_header:
21         b _start
22         .word 0
23         /* Image load offset from start of RAM, little-endian */
24         .quad   CONFIG_SYS_TEXT_BASE - PHYS_SDRAM_1
25         /* Effective size of kernel image, little-endian */
26         .quad   0 /* 0x60000 - ignored */
27         /* Informative flags, little-endian */
28         .quad   0
29         .quad   0                               /* reserved */
30         .quad   0                               /* reserved */
31         .quad   0                               /* reserved */
32         .byte   'A','R','M','d'                 /* Magic number, "ARM\x64" */
33         .word   0                               /* reserved */