1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24#ifndef _AISIMAGE_H_
25#define _AISIMAGE_H_
26
27
28#define AIS_MAGIC_WORD 0x41504954
29#define AIS_FCN_MAX 8
30
31enum {
32 AIS_CMD_LOAD = 0x58535901,
33 AIS_CMD_VALCRC = 0x58535902,
34 AIS_CMD_ENCRC = 0x58535903,
35 AIS_CMD_DISCRC = 0x58535904,
36 AIS_CMD_JMP = 0x58535905,
37 AIS_CMD_JMPCLOSE = 0x58535906,
38 AIS_CMD_BOOTTBL = 0x58535907,
39 AIS_CMD_FILL = 0x5853590A,
40 AIS_CMD_FNLOAD = 0x5853590D,
41 AIS_CMD_SEQREAD = 0x58535963,
42};
43
44struct ais_cmd_load {
45 uint32_t cmd;
46 uint32_t addr;
47 uint32_t size;
48 uint32_t data[1];
49};
50
51struct ais_cmd_func {
52 uint32_t cmd;
53 uint32_t func_args;
54 uint32_t parms[AIS_FCN_MAX];
55};
56
57struct ais_cmd_jmpclose {
58 uint32_t cmd;
59 uint32_t addr;
60};
61
62#define CMD_DATA_STR "DATA"
63
64enum ais_file_cmd {
65 CMD_INVALID,
66 CMD_FILL,
67 CMD_CRCON,
68 CMD_CRCOFF,
69 CMD_CRCCHECK,
70 CMD_JMPCLOSE,
71 CMD_JMP,
72 CMD_SEQREAD,
73 CMD_DATA,
74 CMD_PLL0,
75 CMD_PLL1,
76 CMD_CLK,
77 CMD_DDR2,
78 CMD_EMIFA,
79 CMD_EMIFA_ASYNC,
80 CMD_PLL,
81 CMD_PSC,
82 CMD_PINMUX,
83 CMD_BOOTTABLE
84};
85
86enum aisimage_fld_types {
87 CFG_INVALID = -1,
88 CFG_COMMAND,
89 CFG_VALUE,
90};
91
92struct ais_header {
93 uint32_t magic;
94 char data[1];
95};
96
97#endif
98