3 * Heiko Schocher, DENX Software Engineering, hs@denx.de.
7 * Stefano Babic, DENX Software Engineering, sbabic@denx.de.
9 * SPDX-License-Identifier: GPL-2.0+
25 enum ublimage_fld_types {
32 * from sprufg5a.pdf Table 110
33 * Used by RBL when doing NAND boot
35 #define UBL_MAGIC_BASE (0xA1ACED00)
37 #define UBL_MAGIC_SAFE (0x00)
39 #define UBL_MAGIC_DMA (0x11)
40 /* I Cache boot mode */
41 #define UBL_MAGIC_IC (0x22)
42 /* Fast EMIF boot mode */
43 #define UBL_MAGIC_FAST (0x33)
44 /* DMA + ICache boot mode */
45 #define UBL_MAGIC_DMA_IC (0x44)
46 /* DMA + ICache + Fast EMIF boot mode */
47 #define UBL_MAGIC_DMA_IC_FAST (0x55)
49 /* Define max UBL image size */
50 #define UBL_IMAGE_SIZE (0x00003800u)
53 #define UBL_BLOCK_SIZE 2048
55 /* from sprufg5a.pdf Table 109 */
57 uint32_t magic; /* Magic Number, see UBL_* defines */
58 uint32_t entry; /* entry point address for bootloader */
59 uint32_t pages; /* number of pages (size of bootloader) */
61 * blocknumber where user bootloader is
65 * page number where user bootloader is
69 * PLL setting -Multiplier (only valid if
70 * Magic Number indicates PLL enable).
73 * PLL setting -Divider (only valid if
74 * Magic Number indicates PLL enable).
77 * fast EMIF setting (only valid if
78 * Magic Number indicates fast EMIF boot).
80 /* to fit in one nand block */
81 unsigned char res[UBL_BLOCK_SIZE - 8 * 4];
84 #endif /* _UBLIMAGE_H_ */