| /* SPDX-License-Identifier: GPL-2.0+ */ |
| /* |
| * Common header file for U-Boot |
| * |
| * This file still includes quite a bit of stuff that should be in separate |
| * headers. Please think before adding more things. |
| * Patches to remove things are welcome. |
| * |
| * (C) Copyright 2000-2009 |
| * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| */ |
| |
| #ifndef __COMMON_H_ |
| #define __COMMON_H_ 1 |
| |
| #ifndef __ASSEMBLY__ /* put C only stuff in this section */ |
| |
| #include <config.h> |
| #include <errno.h> |
| #include <time.h> |
| #include <asm-offsets.h> |
| #include <linux/bitops.h> |
| #include <linux/bug.h> |
| #include <linux/delay.h> |
| #include <linux/types.h> |
| #include <linux/printk.h> |
| #include <linux/string.h> |
| #include <linux/stringify.h> |
| #include <asm/ptrace.h> |
| #include <stdarg.h> |
| #include <stdio.h> |
| #include <linux/kernel.h> |
| |
| #include <part.h> |
| #include <flash.h> |
| #include <image.h> |
| |
| #ifdef __LP64__ |
| #define CONFIG_SYS_SUPPORT_64BIT_DATA |
| #endif |
| |
| #include <log.h> |
| |
| #include <asm/u-boot.h> /* boot information for Linux kernel */ |
| #include <asm/global_data.h> /* global data used for startup functions */ |
| |
| /* startup functions, used in: |
| * common/board_f.c |
| * common/init/board_init.c |
| * common/board_r.c |
| * common/board_info.c |
| */ |
| #include <init.h> |
| |
| #include <display_options.h> |
| |
| /* lib/uuid.c */ |
| #include <uuid.h> |
| |
| /* lib/vsprintf.c */ |
| #include <vsprintf.h> |
| |
| /* lib/net_utils.c */ |
| #include <net.h> |
| |
| #include <bootstage.h> |
| |
| #else /* __ASSEMBLY__ */ |
| |
| #endif /* __ASSEMBLY__ */ |
| |
| /* Put only stuff here that the assembler can digest */ |
| |
| /* Pull in stuff for the build system */ |
| #ifdef DO_DEPS_ONLY |
| # include <env_internal.h> |
| #endif |
| |
| #endif /* __COMMON_H_ */ |