]>
Commit | Line | Data |
---|---|---|
c609719b WD |
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 | * | |
1a459660 | 10 | * SPDX-License-Identifier: GPL-2.0+ |
f08abe31 WD |
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 | ******************************************************************** | |
c609719b WD |
18 | */ |
19 | ||
20 | #ifndef _U_BOOT_H_ | |
21 | #define _U_BOOT_H_ 1 | |
22 | ||
959daa21 SG |
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__ | |
c609719b | 29 | typedef struct bd_info { |
e46e31a8 | 30 | unsigned int bi_baudrate; /* serial console baudrate */ |
c609719b WD |
31 | ulong bi_arch_number; /* unique id for this board */ |
32 | ulong bi_boot_params; /* where this board expects params */ | |
8f5d4687 HM |
33 | unsigned long bi_arm_freq; /* arm frequency */ |
34 | unsigned long bi_dsp_freq; /* dsp core frequency */ | |
35 | unsigned long bi_ddr_freq; /* ddr frequency */ | |
c609719b WD |
36 | struct /* RAM configuration */ |
37 | { | |
38 | ulong start; | |
39 | ulong size; | |
53677ef1 | 40 | } bi_dram[CONFIG_NR_DRAM_BANKS]; |
c609719b | 41 | } bd_t; |
959daa21 SG |
42 | #endif |
43 | ||
44 | #endif /* !CONFIG_SYS_GENERIC_BOARD */ | |
c609719b | 45 | |
476af299 | 46 | /* For image.h:image_check_target_arch() */ |
0ae76531 | 47 | #ifndef CONFIG_ARM64 |
476af299 | 48 | #define IH_ARCH_DEFAULT IH_ARCH_ARM |
0ae76531 DF |
49 | #else |
50 | #define IH_ARCH_DEFAULT IH_ARCH_ARM64 | |
51 | #endif | |
476af299 | 52 | |
c609719b | 53 | #endif /* _U_BOOT_H_ */ |