blob: 2e648599be00ee9815eded589ade1da9c6f9011e [file] [log] [blame]
Oshri Alkoby (NTIL)a85957f2019-01-19 00:00:10 +02001<!-- 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'>0x0</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
142 <BinField>
143 <!-- Defines if FIU3 CS1 is enabled -->
144 <name>fiu3_cs1_en</name> <!-- name of field -->
145 <config>
146 <offset>0x119</offset> <!-- offset in the header -->
147 <size>0x1</size> <!-- size in the header -->
148 </config>
149 <content format='bytes'>0x0</content> <!-- content the user should fill -->
150 </BinField>
151
152 <BinField>
153 <!-- Defines if FIU3 CS2 is enabled -->
154 <name>fiu3_cs2_en</name> <!-- name of field -->
155 <config>
156 <offset>0x11A</offset> <!-- offset in the header -->
157 <size>0x1</size> <!-- size in the header -->
158 </config>
159 <content format='bytes'>0x0</content> <!-- content the user should fill -->
160 </BinField>
161
162 <BinField>
163 <!-- Defines if FIU3 CS3 is enabled -->
164 <name>fiu3_cs3_en</name> <!-- name of field -->
165 <config>
166 <offset>0x11B</offset> <!-- offset in the header -->
167 <size>0x1</size> <!-- size in the header -->
168 </config>
169 <content format='bytes'>0x0</content> <!-- content the user should fill -->
170 </BinField>
171
172 <BinField>
173 <!-- Version (Major.Minor) -->
174 <name>Version</name> <!-- name of field -->
175 <config>
176 <offset>0x148</offset> <!-- offset in the header -->
177 <size>0x4</size> <!-- size in the header -->
178 </config>
179 <content format='32bit'>0</content> <!-- content the user should fill -->
180 </BinField>
181
182 <!-- BMC optional fields -->
183 <BinField>
184 <!-- Word contents copied by BB code to FIU0 FIU_DWR_CFG register -->
185 <name>FIU0_DWR_CFG_Set</name> <!-- name of field -->
186 <config>
187 <offset>0x14C</offset> <!-- offset in the header -->
188 <size>0x4</size> <!-- size in the header -->
189 </config>
190 <content format='32bit'>0x03001102</content> <!-- content the user should fill -->
191 </BinField>
192
193
194</Bin_Ecc_Map>