mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-19 01:33:27 +08:00
401d1c4f5d
Move this out of the common header and include it only where needed. In a number of cases this requires adding "struct udevice;" to avoid adding another large header or in other cases replacing / adding missing header files that had been pulled in, very indirectly. Finally, we have a few cases where we did not need to include <asm/global_data.h> at all, so remove that include. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com>
36 lines
874 B
C
36 lines
874 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Common header file for U-Boot
|
|
*
|
|
* This file still includes quite a few headers that should be included
|
|
* individually as needed. 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 <linux/types.h>
|
|
#include <linux/printk.h>
|
|
#include <linux/string.h>
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
#include <linux/kernel.h>
|
|
#include <asm/u-boot.h> /* boot information for Linux kernel */
|
|
#include <display_options.h>
|
|
#include <vsprintf.h>
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
/* Pull in stuff for the build system */
|
|
#ifdef DO_DEPS_ONLY
|
|
# include <env_internal.h>
|
|
#endif
|
|
|
|
#endif /* __COMMON_H_ */
|