wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 1 | /* |
| 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 Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 10 | * SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | f3f4518 | 2005-11-25 16:38:03 +0100 | [diff] [blame] | 11 | * |
| 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 | ******************************************************************** |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 18 | */ |
| 19 | |
| 20 | #ifndef _U_BOOT_H_ |
| 21 | #define _U_BOOT_H_ 1 |
| 22 | |
Simon Glass | 97bbf18 | 2013-03-11 06:49:57 +0000 | [diff] [blame] | 23 | #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__ |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 29 | typedef struct bd_info { |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 30 | ulong bi_arch_number; /* unique id for this board */ |
| 31 | ulong bi_boot_params; /* where this board expects params */ |
Hadli, Manjunath | 0dfccbe | 2012-02-06 00:30:44 +0000 | [diff] [blame] | 32 | unsigned long bi_arm_freq; /* arm frequency */ |
| 33 | unsigned long bi_dsp_freq; /* dsp core frequency */ |
| 34 | unsigned long bi_ddr_freq; /* ddr frequency */ |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 35 | struct /* RAM configuration */ |
| 36 | { |
| 37 | ulong start; |
| 38 | ulong size; |
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 39 | } bi_dram[CONFIG_NR_DRAM_BANKS]; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 40 | } bd_t; |
Simon Glass | 97bbf18 | 2013-03-11 06:49:57 +0000 | [diff] [blame] | 41 | #endif |
| 42 | |
| 43 | #endif /* !CONFIG_SYS_GENERIC_BOARD */ |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 44 | |
Mike Frysinger | 5da0bed | 2011-10-03 14:50:33 +0000 | [diff] [blame] | 45 | /* For image.h:image_check_target_arch() */ |
David Feng | 85fd5f1 | 2013-12-14 11:47:35 +0800 | [diff] [blame] | 46 | #ifndef CONFIG_ARM64 |
Mike Frysinger | 5da0bed | 2011-10-03 14:50:33 +0000 | [diff] [blame] | 47 | #define IH_ARCH_DEFAULT IH_ARCH_ARM |
David Feng | 85fd5f1 | 2013-12-14 11:47:35 +0800 | [diff] [blame] | 48 | #else |
| 49 | #define IH_ARCH_DEFAULT IH_ARCH_ARM64 |
| 50 | #endif |
Mike Frysinger | 5da0bed | 2011-10-03 14:50:33 +0000 | [diff] [blame] | 51 | |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 52 | #endif /* _U_BOOT_H_ */ |