1fea25720SGraeme Russ /* 2fea25720SGraeme Russ * (C) Copyright 2002 3fea25720SGraeme Russ * Sysgo Real-Time Solutions, GmbH <www.elinos.com> 4fea25720SGraeme Russ * Marius Groeger <mgroeger@sysgo.de> 5fea25720SGraeme Russ * 6fea25720SGraeme Russ * (C) Copyright 2002 7fea25720SGraeme Russ * Sysgo Real-Time Solutions, GmbH <www.elinos.com> 8fea25720SGraeme Russ * Alex Zuepke <azu@sysgo.de> 9fea25720SGraeme Russ * 10fea25720SGraeme Russ * See file CREDITS for list of people who contributed to this 11fea25720SGraeme Russ * project. 12fea25720SGraeme Russ * 13fea25720SGraeme Russ * This program is free software; you can redistribute it and/or 14fea25720SGraeme Russ * modify it under the terms of the GNU General Public License as 15fea25720SGraeme Russ * published by the Free Software Foundation; either version 2 of 16fea25720SGraeme Russ * the License, or (at your option) any later version. 17fea25720SGraeme Russ * 18fea25720SGraeme Russ * This program is distributed in the hope that it will be useful, 19fea25720SGraeme Russ * but WITHOUT ANY WARRANTY; without even the implied warranty of 20fea25720SGraeme Russ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21fea25720SGraeme Russ * GNU General Public License for more details. 22fea25720SGraeme Russ * 23fea25720SGraeme Russ * You should have received a copy of the GNU General Public License 24fea25720SGraeme Russ * along with this program; if not, write to the Free Software 25fea25720SGraeme Russ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 26fea25720SGraeme Russ * MA 02111-1307 USA 27fea25720SGraeme Russ * 28fea25720SGraeme Russ ******************************************************************** 29fea25720SGraeme Russ * NOTE: This header file defines an interface to U-Boot. Including 30fea25720SGraeme Russ * this (unmodified) header file in another file is considered normal 31fea25720SGraeme Russ * use of U-Boot, and does *not* fall under the heading of "derived 32fea25720SGraeme Russ * work". 33fea25720SGraeme Russ ******************************************************************** 34fea25720SGraeme Russ */ 35fea25720SGraeme Russ 36fea25720SGraeme Russ #ifndef _U_BOOT_H_ 37fea25720SGraeme Russ #define _U_BOOT_H_ 1 38fea25720SGraeme Russ 39c953fbeeSGabe Black #include <config.h> 40c953fbeeSGabe Black #include <compiler.h> 41c953fbeeSGabe Black 42*e424c15cSSimon Glass #ifdef CONFIG_SYS_GENERIC_BOARD 43*e424c15cSSimon Glass /* Use the generic board which requires a unified bd_info */ 44*e424c15cSSimon Glass #include <asm-generic/u-boot.h> 45*e424c15cSSimon Glass #else 46*e424c15cSSimon Glass 47*e424c15cSSimon Glass #ifndef __ASSEMBLY__ 48*e424c15cSSimon Glass 49fea25720SGraeme Russ typedef struct bd_info { 50fea25720SGraeme Russ unsigned long bi_memstart; /* start of DRAM memory */ 51fea25720SGraeme Russ phys_size_t bi_memsize; /* size of DRAM memory in bytes */ 52fea25720SGraeme Russ unsigned long bi_flashstart; /* start of FLASH memory */ 53fea25720SGraeme Russ unsigned long bi_flashsize; /* size of FLASH memory */ 54fea25720SGraeme Russ unsigned long bi_flashoffset; /* reserved area for startup monitor */ 55fea25720SGraeme Russ unsigned long bi_sramstart; /* start of SRAM memory */ 56fea25720SGraeme Russ unsigned long bi_sramsize; /* size of SRAM memory */ 57fea25720SGraeme Russ unsigned long bi_bootflags; /* boot / reboot flag (for LynxOS) */ 58fea25720SGraeme Russ unsigned short bi_ethspeed; /* Ethernet speed in Mbps */ 59fea25720SGraeme Russ unsigned long bi_intfreq; /* Internal Freq, in MHz */ 60fea25720SGraeme Russ unsigned long bi_busfreq; /* Bus Freq, in MHz */ 61fea25720SGraeme Russ unsigned int bi_baudrate; /* Console Baudrate */ 62fea25720SGraeme Russ unsigned long bi_boot_params; /* where this board expects params */ 63fea25720SGraeme Russ struct /* RAM configuration */ 64fea25720SGraeme Russ { 65fea25720SGraeme Russ ulong start; 66fea25720SGraeme Russ ulong size; 67fea25720SGraeme Russ }bi_dram[CONFIG_NR_DRAM_BANKS]; 68fea25720SGraeme Russ } bd_t; 69fea25720SGraeme Russ 70*e424c15cSSimon Glass #endif /* __ASSEMBLY__ */ 71*e424c15cSSimon Glass 72*e424c15cSSimon Glass #endif /* !CONFIG_SYS_GENERIC_BOARD */ 73*e424c15cSSimon Glass 74476af299SMike Frysinger /* For image.h:image_check_target_arch() */ 75476af299SMike Frysinger #define IH_ARCH_DEFAULT IH_ARCH_I386 76476af299SMike Frysinger 77fea25720SGraeme Russ #endif /* _U_BOOT_H_ */ 78