blob: 1612a83683cd10fe335a52b0a35f0aeff8346e1f [file] [log] [blame]
Joseph Liu2306d682019-09-16 15:32:23 +08001<!-- SPDX-License-Identifier: GPL-2.0
2#
3# Nuvoton IGPS: Image Generation And Programming Scripts For Poleg BMC
4#
5# Copyright (C) 2018 Nuvoton Technologies, All Rights Reserved
6#--------------------------------------------------------------------------->
7
8<?xml version="1.0" encoding="UTF-8"?>
9
10<Bin_Ecc_Map>
11 <!-- BMC mandatory fields -->
12 <ImageProperties>
13 <BinSize>0</BinSize> <!-- If 0 the binary size will be calculated by the tool -->
14 <PadValue>0xFF</PadValue> <!-- Byte value to pad the empty areas, default is 0 -->
15 </ImageProperties>
16
17 <BinField>
18 <!-- BootBlock tag (0x50 0x07 0x55 0xAA 0x54 0x4F 0x4F 0x42) or
19 uboot tag (0x55 0x42 0x4F 0x4F 0x54 0x42 0x4C 0x4B) -->
20 <name>StartTag</name> <!-- name of field -->
21 <config>
22 <offset>0</offset> <!-- offset in the header -->
23 <size>0x8</size> <!-- size in the header -->
24 </config>
25 <content format='bytes'>0x55 0x42 0x4F 0x4F 0x54 0x42 0x4C 0x4B</content> <!-- content the user should fill -->
26 </BinField>
27
28 <BinField>
29 <!-- Code destination address, 32-bit aligned: for u-boot should be 0x80005000 so code will run in 0x80005200 as linked for -->
30 <name>DestAddr</name> <!-- name of field -->
31 <config>
32 <offset>0x140</offset> <!-- offset in the header -->
33 <size>0x4</size> <!-- size in the header -->
34 </config>
35 <content format='32bit'>0x8000</content> <!-- content the user should fill -->
36 </BinField>
37
38 <BinField>
39 <!-- BootBlock or u-boot Code size -->
40 <name>CodeSize</name> <!-- name of field -->
41 <config>
42 <offset>0x144</offset> <!-- offset in the header -->
43 <size>0x4</size> <!-- size in the header -->
44 </config>
45 <content format='FileSize'>u-boot.bin</content> <!-- content the user should fill -->
46 </BinField>
47
48 <BinField>
49 <!-- The BootBlock or u-boot binary file -->
50 <name>Code</name> <!-- name of field -->
51 <config>
52 <offset>0x200</offset> <!-- offset in the header -->
53 <size format='FileSize'>u-boot.bin</size> <!-- size in the header calculated by tool-->
54 </config>
55 <content format='FileContent'>u-boot.bin</content> <!-- content the user should fill -->
56 </BinField>
57
58 <!-- BMC optional fields -->
59 <BinField>
60 <!-- Word contents copied by ROM code to FIU0 FIU_DRD_CFG register -->
61 <name>FIU0_DRD_CFG_Set</name> <!-- name of field -->
62 <config>
63 <offset>0x108</offset> <!-- offset in the header -->
64 <size>0x4</size> <!-- size in the header -->
65 </config>
66 <content format='32bit'>0x030111BC</content> <!-- content the user should fill 0x030032EB -->
67 </BinField>
68
69 <BinField>
70 <!-- Defines the clock divide ratio from AHB to FIU0 clock -->
71 <name>FIU0_Clk_Divider</name> <!-- name of field -->
72 <config>
73 <offset>0x10C</offset> <!-- offset in the header -->
74 <size>0x1</size> <!-- size in the header -->
75 </config>
76 <content format='bytes'>0</content> <!-- content the user should fill -->
77 </BinField>
78
79 <BinField>
80 <!-- Defines if FIU0 CS1 is enabled -->
81 <name>fiu0_cs1_en</name> <!-- name of field -->
82 <config>
83 <offset>0x10D</offset> <!-- offset in the header -->
84 <size>0x1</size> <!-- size in the header -->
85 </config>
86 <content format='bytes'>0x0</content> <!-- content the user should fill -->
87 </BinField>
88
89 <BinField>
90 <!-- Defines if FIU0 CS2 is enabled -->
91 <name>fiu0_cs2_en</name> <!-- name of field -->
92 <config>
93 <offset>0x10E</offset> <!-- offset in the header -->
94 <size>0x1</size> <!-- size in the header -->
95 </config>
96 <content format='bytes'>0x0</content> <!-- content the user should fill -->
97 </BinField>
98
99 <BinField>
100 <!-- Defines if FIU0 CS3 is enabled -->
101 <name>fiu0_cs3_en</name> <!-- name of field -->
102 <config>
103 <offset>0x10F</offset> <!-- offset in the header -->
104 <size>0x1</size> <!-- size in the header -->
105 </config>
106 <content format='bytes'>0x0</content> <!-- content the user should fill -->
107 </BinField>
108
109 <!-- BMC optional fields -->
110 <BinField>
111 <!-- Word contents copied by ROM code to FIU3 FIU_DRD_CFG register -->
112 <name>FIU3_DRD_CFG_Set</name> <!-- name of field -->
113 <config>
114 <offset>0x110</offset> <!-- offset in the header -->
115 <size>0x4</size> <!-- size in the header -->
116 </config>
117 <content format='32bit'>0x030011BB</content> <!-- content the user should fill -->
118 </BinField>
119
120 <!-- BMC optional fields -->
121 <BinField>
122 <!-- Word contents copied by ROM code to FIU3 FIU_DRD_CFG register -->
123 <name>FIU3_DWR_CFG_Set</name> <!-- name of field -->
124 <config>
125 <offset>0x114</offset> <!-- offset in the header -->
126 <size>0x4</size> <!-- size in the header -->
127 </config>
128 <content format='32bit'>0x0</content> <!-- content the user should fill -->
129 </BinField>
130
131 <BinField>
132 <!-- Defines the clock divide ratio from AHB to FIU3 clock -->
133 <name>FIU3_Clk_Divider</name> <!-- name of field -->
134 <config>
135 <offset>0x118</offset> <!-- offset in the header -->
136 <size>0x1</size> <!-- size in the header -->
137 </config>
138 <content format='bytes'>0x0</content> <!-- content the user should fill -->
139 </BinField>
140
141 <BinField>
142 <!-- Defines if FIU3 CS0 is enabled -->
143 <name>fiu3_cs0_en</name> <!-- name of field -->
144 <config>
145 <offset>0x119</offset> <!-- offset in the header -->
146 <size>0x1</size> <!-- size in the header -->
147 </config>
148 <content format='bytes'>0x0</content> <!-- content the user should fill -->
149 </BinField>
150
151 <BinField>
152 <!-- Defines if FIU3 CS1 is enabled -->
153 <name>fiu3_cs1_en</name> <!-- name of field -->
154 <config>
155 <offset>0x11A</offset> <!-- offset in the header -->
156 <size>0x1</size> <!-- size in the header -->
157 </config>
158 <content format='bytes'>0x0</content> <!-- content the user should fill -->
159 </BinField>
160
161 <BinField>
162 <!-- Defines if FIU3 CS2 is enabled -->
163 <name>fiu3_cs2_en</name> <!-- name of field -->
164 <config>
165 <offset>0x11B</offset> <!-- offset in the header -->
166 <size>0x1</size> <!-- size in the header -->
167 </config>
168 <content format='bytes'>0x0</content> <!-- content the user should fill -->
169 </BinField>
170
171 <BinField>
172 <!-- Defines if FIU3 CS3 is enabled -->
173 <name>fiu3_cs3_en</name> <!-- name of field -->
174 <config>
175 <offset>0x11C</offset> <!-- offset in the header -->
176 <size>0x1</size> <!-- size in the header -->
177 </config>
178 <content format='bytes'>0x0</content> <!-- content the user should fill -->
179 </BinField>
180
181 <BinField>
182 <!-- Version (Major.Minor) -->
183 <name>Version</name> <!-- name of field -->
184 <config>
185 <offset>0x148</offset> <!-- offset in the header -->
186 <size>0x4</size> <!-- size in the header -->
187 </config>
188 <content format='32bit'>0x0201</content> <!-- content the user should fill -->
189 </BinField>
190
191</Bin_Ecc_Map>