blob: 983cb2d9671c8aebc37fbe1ed6a7577ae4b15373 [file] [log] [blame]
wdenk4e5ca3e2003-12-08 01:34:36 +00001/*
2 * (C) Copyright 2000 - 2003
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Wolfgang Denkf08abe32005-11-25 16:38:03 +01006 ********************************************************************
7 * NOTE: This header file defines an interface to U-Boot. Including
8 * this (unmodified) header file in another file is considered normal
9 * use of U-Boot, and does *not* fall under the heading of "derived
10 * work".
11 ********************************************************************
wdenk4e5ca3e2003-12-08 01:34:36 +000012 */
13
14#ifndef __U_BOOT_H__
15#define __U_BOOT_H__
16
17/*
18 * Board information passed to Linux kernel from U-Boot
19 *
20 * include/asm-ppc/u-boot.h
21 */
22
23#ifndef __ASSEMBLY__
wdenk4e5ca3e2003-12-08 01:34:36 +000024
25typedef struct bd_info {
TsiChung Liew8e585f02007-06-18 13:50:13 -050026 unsigned long bi_memstart; /* start of DRAM memory */
Becky Bruceb57ca3e2008-06-09 20:37:16 -050027 phys_size_t bi_memsize; /* size of DRAM memory in bytes */
TsiChung Liew8e585f02007-06-18 13:50:13 -050028 unsigned long bi_flashstart; /* start of FLASH memory */
29 unsigned long bi_flashsize; /* size of FLASH memory */
30 unsigned long bi_flashoffset; /* reserved area for startup monitor */
31 unsigned long bi_sramstart; /* start of SRAM memory */
32 unsigned long bi_sramsize; /* size of SRAM memory */
33 unsigned long bi_mbar_base; /* base of internal registers */
34 unsigned long bi_bootflags; /* boot / reboot flag (for LynxOS) */
35 unsigned long bi_boot_params; /* where this board expects params */
TsiChung Liew8e585f02007-06-18 13:50:13 -050036 unsigned short bi_ethspeed; /* Ethernet speed in Mbps */
37 unsigned long bi_intfreq; /* Internal Freq, in MHz */
38 unsigned long bi_busfreq; /* Bus Freq, in MHz */
TsiChungLiew8ae158c2007-08-16 15:05:11 -050039#ifdef CONFIG_PCI
40 unsigned long bi_pcifreq; /* pci Freq in MHz */
41#endif
42#ifdef CONFIG_EXTRA_CLOCK
43 unsigned long bi_inpfreq; /* input Freq in MHz */
44 unsigned long bi_vcofreq; /* vco Freq in MHz */
45 unsigned long bi_flbfreq; /* Flexbus Freq in MHz */
46#endif
wdenk4e5ca3e2003-12-08 01:34:36 +000047} bd_t;
48
TsiChung Liew8e585f02007-06-18 13:50:13 -050049#endif /* __ASSEMBLY__ */
wdenkbf9e3b32004-02-12 00:47:09 +000050
Mike Frysinger476af292011-10-03 14:50:33 +000051/* For image.h:image_check_target_arch() */
52#define IH_ARCH_DEFAULT IH_ARCH_M68K
53
TsiChung Liew8e585f02007-06-18 13:50:13 -050054#endif /* __U_BOOT_H__ */