Commit | Line | Data |
---|---|---|
9703d9d7 CM |
1 | /* |
2 | * Based on arch/arm/include/asm/setup.h | |
3 | * | |
4 | * Copyright (C) 1997-1999 Russell King | |
5 | * Copyright (C) 2012 ARM Ltd. | |
6 | * | |
7 | * This program is free software; you can redistribute it and/or modify | |
8 | * it under the terms of the GNU General Public License version 2 as | |
9 | * published by the Free Software Foundation. | |
10 | * | |
11 | * This program is distributed in the hope that it will be useful, | |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | * GNU General Public License for more details. | |
15 | * | |
16 | * You should have received a copy of the GNU General Public License | |
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 | */ | |
19 | #ifndef __ASM_SETUP_H | |
20 | #define __ASM_SETUP_H | |
21 | ||
22 | #include <linux/types.h> | |
23 | ||
24 | #define COMMAND_LINE_SIZE 2048 | |
25 | ||
6fa3eb70 S |
26 | /* general memory descriptor */ |
27 | typedef struct { | |
28 | u64 start; | |
29 | u64 size; | |
30 | } mem_desc_t; | |
31 | ||
32 | /* mblock is used by CPU */ | |
33 | typedef struct { | |
34 | u64 start; | |
35 | u64 size; | |
36 | u32 rank; /* rank the mblock belongs to */ | |
37 | } mblock_t; | |
38 | ||
39 | typedef struct { | |
40 | u32 mblock_num; | |
41 | mblock_t mblock[4]; | |
42 | } mblock_info_t; | |
43 | ||
44 | typedef struct { | |
45 | u32 rank_num; | |
46 | mem_desc_t rank_info[4]; | |
47 | } dram_info_t; | |
48 | ||
9703d9d7 | 49 | #endif |