Ian Campbell | 6efe369 | 2014-05-05 11:52:26 +0100 | [diff] [blame] | 1 | /* |
Bernhard Nortmann | c9e8961 | 2015-09-17 18:52:50 +0200 | [diff] [blame^] | 2 | * (C) Copyright 2007-2011 |
| 3 | * Allwinner Technology Co., Ltd. <www.allwinnertech.com> |
| 4 | * Tom Cubie <tangliang@allwinnertech.com> |
Ian Campbell | 6efe369 | 2014-05-05 11:52:26 +0100 | [diff] [blame] | 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0+ |
| 7 | */ |
| 8 | #ifndef _ASM_ARCH_SPL_H_ |
Jeroen Hofstee | c5d88a5 | 2014-06-11 22:01:48 +0200 | [diff] [blame] | 9 | #define _ASM_ARCH_SPL_H_ |
Ian Campbell | 6efe369 | 2014-05-05 11:52:26 +0100 | [diff] [blame] | 10 | |
Bernhard Nortmann | c9e8961 | 2015-09-17 18:52:50 +0200 | [diff] [blame^] | 11 | #define BOOT0_MAGIC "eGON.BT0" |
| 12 | |
| 13 | /* boot head definition from sun4i boot code */ |
| 14 | struct 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 Campbell | 6efe369 | 2014-05-05 11:52:26 +0100 | [diff] [blame] | 28 | #endif |