1*00f892fcSMacpaul Lin /* 2*00f892fcSMacpaul Lin * (C) Copyright 2002 3*00f892fcSMacpaul Lin * Sysgo Real-Time Solutions, GmbH <www.elinos.com> 4*00f892fcSMacpaul Lin * Marius Groeger <mgroeger@sysgo.de> 5*00f892fcSMacpaul Lin * 6*00f892fcSMacpaul Lin * Copyright (C) 2011 Andes Technology Corporation 7*00f892fcSMacpaul Lin * Copyright (C) 2010 Shawn Lin (nobuhiro@andestech.com) 8*00f892fcSMacpaul Lin * Copyright (C) 2011 Macpaul Lin (macpaul@andestech.com) 9*00f892fcSMacpaul Lin * 10*00f892fcSMacpaul Lin * See file CREDITS for list of people who contributed to this 11*00f892fcSMacpaul Lin * project. 12*00f892fcSMacpaul Lin * 13*00f892fcSMacpaul Lin * This program is free software; you can redistribute it and/or 14*00f892fcSMacpaul Lin * modify it under the terms of the GNU General Public License as 15*00f892fcSMacpaul Lin * published by the Free Software Foundation; either version 2 of 16*00f892fcSMacpaul Lin * the License, or (at your option) any later version. 17*00f892fcSMacpaul Lin * 18*00f892fcSMacpaul Lin * This program is distributed in the hope that it will be useful, 19*00f892fcSMacpaul Lin * but WITHOUT ANY WARRANTY; without even the implied warranty of 20*00f892fcSMacpaul Lin * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21*00f892fcSMacpaul Lin * GNU General Public License for more details. 22*00f892fcSMacpaul Lin * 23*00f892fcSMacpaul Lin * You should have received a copy of the GNU General Public License 24*00f892fcSMacpaul Lin * along with this program; if not, write to the Free Software 25*00f892fcSMacpaul Lin * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 26*00f892fcSMacpaul Lin * MA 02111-1307 USA 27*00f892fcSMacpaul Lin * 28*00f892fcSMacpaul Lin ******************************************************************** 29*00f892fcSMacpaul Lin * NOTE: This header file defines an interface to U-Boot. Including 30*00f892fcSMacpaul Lin * this (unmodified) header file in another file is considered normal 31*00f892fcSMacpaul Lin * use of U-Boot, and does *not* fall under the heading of "derived 32*00f892fcSMacpaul Lin * work". 33*00f892fcSMacpaul Lin ******************************************************************** 34*00f892fcSMacpaul Lin */ 35*00f892fcSMacpaul Lin 36*00f892fcSMacpaul Lin #ifndef _U_BOOT_H_ 37*00f892fcSMacpaul Lin #define _U_BOOT_H_ 1 38*00f892fcSMacpaul Lin 39*00f892fcSMacpaul Lin #include <environment.h> 40*00f892fcSMacpaul Lin 41*00f892fcSMacpaul Lin typedef struct bd_info { 42*00f892fcSMacpaul Lin int bi_baudrate; /* serial console baudrate */ 43*00f892fcSMacpaul Lin unsigned long bi_ip_addr; /* IP Address */ 44*00f892fcSMacpaul Lin unsigned char bi_enetaddr[6]; /* Ethernet adress */ 45*00f892fcSMacpaul Lin unsigned long bi_arch_number; /* unique id for this board */ 46*00f892fcSMacpaul Lin unsigned long bi_boot_params; /* where this board expects params */ 47*00f892fcSMacpaul Lin unsigned long bi_memstart; /* start of DRAM memory */ 48*00f892fcSMacpaul Lin unsigned long bi_memsize; /* size of DRAM memory in bytes */ 49*00f892fcSMacpaul Lin unsigned long bi_flashstart; /* start of FLASH memory */ 50*00f892fcSMacpaul Lin unsigned long bi_flashsize; /* size of FLASH memory */ 51*00f892fcSMacpaul Lin unsigned long bi_flashoffset; /* reserved area for startup monitor */ 52*00f892fcSMacpaul Lin 53*00f892fcSMacpaul Lin struct /* RAM configuration */ 54*00f892fcSMacpaul Lin { 55*00f892fcSMacpaul Lin unsigned long start; 56*00f892fcSMacpaul Lin unsigned long size; 57*00f892fcSMacpaul Lin } bi_dram[CONFIG_NR_DRAM_BANKS]; 58*00f892fcSMacpaul Lin } bd_t; 59*00f892fcSMacpaul Lin 60*00f892fcSMacpaul Lin /* For image.h:image_check_target_arch() */ 61*00f892fcSMacpaul Lin #define IH_ARCH_DEFAULT IH_ARCH_NDS32 62*00f892fcSMacpaul Lin 63*00f892fcSMacpaul Lin #endif /* _U_BOOT_H_ */ 64