1 /* 2 * (C) Copyright 2007-2011 3 * Allwinner Technology Co., Ltd. <www.allwinnertech.com> 4 * Tom Cubie <tangliang@allwinnertech.com> 5 * 6 * SPDX-License-Identifier: GPL-2.0+ 7 */ 8 #ifndef _ASM_ARCH_SPL_H_ 9 #define _ASM_ARCH_SPL_H_ 10 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 28 #endif 29