blob: 5bcd0ebbd03f145fbc20a9a37f0ac550e37c4b97 [file] [log] [blame]
Ian Campbell6efe3692014-05-05 11:52:26 +01001/*
Bernhard Nortmannc9e89612015-09-17 18:52:50 +02002 * (C) Copyright 2007-2011
3 * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
4 * Tom Cubie <tangliang@allwinnertech.com>
Ian Campbell6efe3692014-05-05 11:52:26 +01005 *
6 * SPDX-License-Identifier: GPL-2.0+
7 */
8#ifndef _ASM_ARCH_SPL_H_
Jeroen Hofsteec5d88a52014-06-11 22:01:48 +02009#define _ASM_ARCH_SPL_H_
Ian Campbell6efe3692014-05-05 11:52:26 +010010
Bernhard Nortmannc9e89612015-09-17 18:52:50 +020011#define BOOT0_MAGIC "eGON.BT0"
12
13/* boot head definition from sun4i boot code */
14struct boot_file_head {
15 uint32_t b_instruction; /* one intruction jumping to real code */
16 uint8_t magic[8]; /* ="eGON.BT0" or "eGON.BT1", not C-style str */
17 uint32_t check_sum; /* generated by PC */
18 uint32_t length; /* generated by PC */
19 /*
20 * We use a simplified header, only filling in what is needed
21 * by the boot ROM. To be compatible with Allwinner tools we
22 * would need to implement the proper fields here instead of
23 * padding.
24 */
25 uint8_t pad[12]; /* align to 32 bytes */
26};
27
Ian Campbell6efe3692014-05-05 11:52:26 +010028#endif