blob: 2b5fce86ab6fe893699a1f9bef0fb2f5d28a83cc [file] [log] [blame]
wdenkc6097192002-11-03 00:24:07 +00001/*
2 * (C) Copyright 2002
3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4 * Marius Groeger <mgroeger@sysgo.de>
5 *
6 * (C) Copyright 2002
7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
8 * Alex Zuepke <azu@sysgo.de>
9 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020010 * SPDX-License-Identifier: GPL-2.0+
Wolfgang Denkf3f45182005-11-25 16:38:03 +010011 *
12 ********************************************************************
13 * NOTE: This header file defines an interface to U-Boot. Including
14 * this (unmodified) header file in another file is considered normal
15 * use of U-Boot, and does *not* fall under the heading of "derived
16 * work".
17 ********************************************************************
wdenkc6097192002-11-03 00:24:07 +000018 */
19
20#ifndef _U_BOOT_H_
21#define _U_BOOT_H_ 1
22
Simon Glass97bbf182013-03-11 06:49:57 +000023#ifdef CONFIG_SYS_GENERIC_BOARD
24/* Use the generic board which requires a unified bd_info */
25#include <asm-generic/u-boot.h>
26#else
27
28#ifndef __ASSEMBLY__
wdenkc6097192002-11-03 00:24:07 +000029typedef struct bd_info {
Simon Glassc3b324e2012-10-12 14:21:16 +000030 unsigned int bi_baudrate; /* serial console baudrate */
wdenkc6097192002-11-03 00:24:07 +000031 ulong bi_arch_number; /* unique id for this board */
32 ulong bi_boot_params; /* where this board expects params */
Hadli, Manjunath0dfccbe2012-02-06 00:30:44 +000033 unsigned long bi_arm_freq; /* arm frequency */
34 unsigned long bi_dsp_freq; /* dsp core frequency */
35 unsigned long bi_ddr_freq; /* ddr frequency */
wdenkc6097192002-11-03 00:24:07 +000036 struct /* RAM configuration */
37 {
38 ulong start;
39 ulong size;
Wolfgang Denka1be4762008-05-20 16:00:29 +020040 } bi_dram[CONFIG_NR_DRAM_BANKS];
wdenkc6097192002-11-03 00:24:07 +000041} bd_t;
Simon Glass97bbf182013-03-11 06:49:57 +000042#endif
43
44#endif /* !CONFIG_SYS_GENERIC_BOARD */
wdenkc6097192002-11-03 00:24:07 +000045
Mike Frysinger5da0bed2011-10-03 14:50:33 +000046/* For image.h:image_check_target_arch() */
47#define IH_ARCH_DEFAULT IH_ARCH_ARM
48
wdenkc6097192002-11-03 00:24:07 +000049#endif /* _U_BOOT_H_ */