3 * Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com.
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 #ifndef _SPR_XLOADER_TABLE_H
25 #define _SPR_XLOADER_TABLE_H
27 #define XLOADER_TABLE_VERSION_1_1 2
28 #define XLOADER_TABLE_VERSION_1_2 3
30 #define XLOADER_TABLE_ADDRESS 0xD2801FF0
39 struct xloader_table_1_1 {
40 unsigned short ddrfreq;
41 unsigned char ddrsize;
42 unsigned char ddrtype;
44 unsigned char soc_rev;
45 } __attribute__ ((packed));
47 struct xloader_table_1_2 {
48 unsigned const char *version;
50 unsigned short ddrfreq;
51 unsigned char ddrsize;
52 unsigned char ddrtype;
54 unsigned char soc_rev;
55 } __attribute__ ((packed));
57 union table_contents {
58 struct xloader_table_1_1 table_1_1;
59 struct xloader_table_1_2 table_1_2;
62 struct xloader_table {
63 unsigned char table_version;
64 union table_contents table;
65 } __attribute__ ((packed));