/* * Based on arch/arm/include/asm/setup.h * * Copyright (C) 1997-1999 Russell King * Copyright (C) 2012 ARM Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef __ASM_SETUP_H #define __ASM_SETUP_H #include #define COMMAND_LINE_SIZE 2048 /* general memory descriptor */ typedef struct { u64 start; u64 size; } mem_desc_t; /* mblock is used by CPU */ typedef struct { u64 start; u64 size; u32 rank; /* rank the mblock belongs to */ } mblock_t; typedef struct { u32 mblock_num; mblock_t mblock[4]; } mblock_info_t; typedef struct { u32 rank_num; mem_desc_t rank_info[4]; } dram_info_t; #endif