]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/asm-arm/arch-spear/spr_xloader_table.h
Replace "#include <asm-$ARCH/$FILE>" with "#include <asm/$FILE>"
[karo-tx-uboot.git] / include / asm-arm / arch-spear / spr_xloader_table.h
1 /*
2  * (C) Copyright 2009
3  * Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com.
4  *
5  * See file CREDITS for list of people who contributed to this
6  * project.
7  *
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.
12  *
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.
17  *
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,
21  * MA 02111-1307 USA
22  */
23
24 #ifndef _SPR_XLOADER_TABLE_H
25 #define _SPR_XLOADER_TABLE_H
26
27 #define XLOADER_TABLE_VERSION_1_1       2
28 #define XLOADER_TABLE_VERSION_1_2       3
29
30 #define XLOADER_TABLE_ADDRESS           0xD2801FF0
31
32 #define DDRMOBILE       1
33 #define DDR2            2
34
35 #define REV_BA          1
36 #define REV_AA          2
37 #define REV_AB          3
38
39 struct xloader_table_1_1 {
40         unsigned short ddrfreq;
41         unsigned char ddrsize;
42         unsigned char ddrtype;
43
44         unsigned char soc_rev;
45 } __attribute__ ((packed));
46
47 struct xloader_table_1_2 {
48         unsigned const char *version;
49
50         unsigned short ddrfreq;
51         unsigned char ddrsize;
52         unsigned char ddrtype;
53
54         unsigned char soc_rev;
55 } __attribute__ ((packed));
56
57 union table_contents {
58         struct xloader_table_1_1 table_1_1;
59         struct xloader_table_1_2 table_1_2;
60 };
61
62 struct xloader_table {
63         unsigned char table_version;
64         union table_contents table;
65 } __attribute__ ((packed));
66
67 #endif