xref: /openbmc/u-boot/tools/omapimage.h (revision 3decb14a)
1*3decb14aSJohn Rigby /*
2*3decb14aSJohn Rigby  * (C) Copyright 2010
3*3decb14aSJohn Rigby  * Linaro LTD, www.linaro.org
4*3decb14aSJohn Rigby  * Author John Rigby <john.rigby@linaro.org>
5*3decb14aSJohn Rigby  * Based on TI's signGP.c
6*3decb14aSJohn Rigby  *
7*3decb14aSJohn Rigby  * See file CREDITS for list of people who contributed to this
8*3decb14aSJohn Rigby  * project.
9*3decb14aSJohn Rigby  *
10*3decb14aSJohn Rigby  * This program is free software; you can redistribute it and/or
11*3decb14aSJohn Rigby  * modify it under the terms of the GNU General Public License as
12*3decb14aSJohn Rigby  * published by the Free Software Foundation; either version 2 of
13*3decb14aSJohn Rigby  * the License, or (at your option) any later version.
14*3decb14aSJohn Rigby  *
15*3decb14aSJohn Rigby  * This program is distributed in the hope that it will be useful,
16*3decb14aSJohn Rigby  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*3decb14aSJohn Rigby  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
18*3decb14aSJohn Rigby  * GNU General Public License for more details.
19*3decb14aSJohn Rigby  *
20*3decb14aSJohn Rigby  * You should have received a copy of the GNU General Public License
21*3decb14aSJohn Rigby  * along with this program; if not, write to the Free Software
22*3decb14aSJohn Rigby  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23*3decb14aSJohn Rigby  * MA 02111-1307 USA
24*3decb14aSJohn Rigby  */
25*3decb14aSJohn Rigby 
26*3decb14aSJohn Rigby #ifndef _OMAPIMAGE_H_
27*3decb14aSJohn Rigby #define _OMAPIMAGE_H_
28*3decb14aSJohn Rigby 
29*3decb14aSJohn Rigby struct ch_toc {
30*3decb14aSJohn Rigby 	uint32_t section_offset;
31*3decb14aSJohn Rigby 	uint32_t section_size;
32*3decb14aSJohn Rigby 	uint8_t unused[12];
33*3decb14aSJohn Rigby 	uint8_t section_name[12];
34*3decb14aSJohn Rigby };
35*3decb14aSJohn Rigby 
36*3decb14aSJohn Rigby struct ch_settings {
37*3decb14aSJohn Rigby 	uint32_t section_key;
38*3decb14aSJohn Rigby 	uint8_t valid;
39*3decb14aSJohn Rigby 	uint8_t version;
40*3decb14aSJohn Rigby 	uint16_t reserved;
41*3decb14aSJohn Rigby 	uint32_t flags;
42*3decb14aSJohn Rigby };
43*3decb14aSJohn Rigby 
44*3decb14aSJohn Rigby struct gp_header {
45*3decb14aSJohn Rigby 	uint32_t size;
46*3decb14aSJohn Rigby 	uint32_t load_addr;
47*3decb14aSJohn Rigby };
48*3decb14aSJohn Rigby 
49*3decb14aSJohn Rigby #define KEY_CHSETTINGS 0xC0C0C0C1
50*3decb14aSJohn Rigby #endif /* _OMAPIMAGE_H_ */
51