Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 2 | /* |
Simon Glass | 1ed83ba | 2019-08-02 09:44:27 -0600 | [diff] [blame] | 3 | * Common header file for U-Boot |
4 | * | ||||
Simon Glass | de69e5c | 2019-12-28 10:45:12 -0700 | [diff] [blame] | 5 | * This file still includes quite a few headers that should be included |
6 | * individually as needed. Patches to remove things are welcome. | ||||
Simon Glass | 1ed83ba | 2019-08-02 09:44:27 -0600 | [diff] [blame] | 7 | * |
Wolfgang Denk | f342f86 | 2009-05-16 10:47:45 +0200 | [diff] [blame] | 8 | * (C) Copyright 2000-2009 |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 9 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 10 | */ |
11 | |||||
12 | #ifndef __COMMON_H_ | ||||
Wolfgang Denk | bcbd521 | 2012-01-06 07:36:44 +0100 | [diff] [blame] | 13 | #define __COMMON_H_ 1 |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 14 | |
Wolfgang Denk | 66e8d44 | 2009-07-24 00:17:48 +0200 | [diff] [blame] | 15 | #ifndef __ASSEMBLY__ /* put C only stuff in this section */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 16 | #include <config.h> |
Joe Hershberger | cbf1a93 | 2016-04-04 04:07:33 -0500 | [diff] [blame] | 17 | #include <errno.h> |
Masahiro Yamada | a4f0b8e | 2016-12-28 00:36:00 +0900 | [diff] [blame] | 18 | #include <time.h> |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 19 | #include <linux/types.h> |
Masahiro Yamada | bf9c293 | 2017-09-16 14:10:40 +0900 | [diff] [blame] | 20 | #include <linux/printk.h> |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 21 | #include <linux/string.h> |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 22 | #include <stdarg.h> |
Masahiro Yamada | 5e882e9 | 2017-09-16 14:10:39 +0900 | [diff] [blame] | 23 | #include <stdio.h> |
Masahiro Yamada | bd42662 | 2014-11-07 03:03:28 +0900 | [diff] [blame] | 24 | #include <linux/kernel.h> |
wdenk | 87249ba | 2004-01-06 22:38:14 +0000 | [diff] [blame] | 25 | #include <asm/u-boot.h> /* boot information for Linux kernel */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 26 | #include <asm/global_data.h> /* global data used for startup functions */ |
Simon Glass | 7da617c | 2015-04-28 20:25:07 -0600 | [diff] [blame] | 27 | #include <display_options.h> |
Simon Glass | f7ae6806 | 2011-11-02 09:52:07 +0000 | [diff] [blame] | 28 | #include <vsprintf.h> |
Andre Przywara | 9fcee53 | 2017-01-02 11:48:30 +0000 | [diff] [blame] | 29 | #endif /* __ASSEMBLY__ */ |
Wolfgang Denk | 66e8d44 | 2009-07-24 00:17:48 +0200 | [diff] [blame] | 30 | |
Mike Frysinger | 63b8f12 | 2011-07-08 10:44:25 +0000 | [diff] [blame] | 31 | /* Pull in stuff for the build system */ |
32 | #ifdef DO_DEPS_ONLY | ||||
Simon Glass | 9d1f619 | 2019-08-02 09:44:25 -0600 | [diff] [blame] | 33 | # include <env_internal.h> |
Mike Frysinger | 63b8f12 | 2011-07-08 10:44:25 +0000 | [diff] [blame] | 34 | #endif |
35 | |||||
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 36 | #endif /* __COMMON_H_ */ |