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> |
Wolfgang Denk | 0191e47 | 2010-10-26 14:34:52 +0200 | [diff] [blame] | 19 | #include <asm-offsets.h> |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 20 | #include <linux/bitops.h> |
Masahiro Yamada | 958f0f0 | 2017-09-16 14:10:45 +0900 | [diff] [blame] | 21 | #include <linux/bug.h> |
Masahiro Yamada | 29d2a62 | 2016-12-28 00:35:59 +0900 | [diff] [blame] | 22 | #include <linux/delay.h> |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 23 | #include <linux/types.h> |
Masahiro Yamada | bf9c293 | 2017-09-16 14:10:40 +0900 | [diff] [blame] | 24 | #include <linux/printk.h> |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 25 | #include <linux/string.h> |
Marek Vasut | a3f1634 | 2012-09-27 17:08:15 +0200 | [diff] [blame] | 26 | #include <linux/stringify.h> |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 27 | #include <asm/ptrace.h> |
28 | #include <stdarg.h> | ||||
Masahiro Yamada | 5e882e9 | 2017-09-16 14:10:39 +0900 | [diff] [blame] | 29 | #include <stdio.h> |
Masahiro Yamada | bd42662 | 2014-11-07 03:03:28 +0900 | [diff] [blame] | 30 | #include <linux/kernel.h> |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 31 | #include <part.h> |
32 | #include <flash.h> | ||||
33 | #include <image.h> | ||||
Simon Glass | 9054a02 | 2017-12-04 13:48:20 -0700 | [diff] [blame] | 34 | #include <log.h> |
wdenk | 87249ba | 2004-01-06 22:38:14 +0000 | [diff] [blame] | 35 | #include <asm/u-boot.h> /* boot information for Linux kernel */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 36 | #include <asm/global_data.h> /* global data used for startup functions */ |
Patrick Delaunay | c6bfcd5 | 2018-03-09 18:28:12 +0100 | [diff] [blame] | 37 | #include <init.h> |
Simon Glass | 7da617c | 2015-04-28 20:25:07 -0600 | [diff] [blame] | 38 | #include <display_options.h> |
Przemyslaw Marczak | 0c81336 | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 39 | #include <uuid.h> |
Simon Glass | f7ae6806 | 2011-11-02 09:52:07 +0000 | [diff] [blame] | 40 | #include <vsprintf.h> |
Joe Hershberger | 05a377b | 2012-05-23 08:01:04 +0000 | [diff] [blame] | 41 | #include <net.h> |
Simon Glass | 8445d00 | 2012-01-14 15:24:44 +0000 | [diff] [blame] | 42 | #include <bootstage.h> |
Andre Przywara | 9fcee53 | 2017-01-02 11:48:30 +0000 | [diff] [blame] | 43 | #endif /* __ASSEMBLY__ */ |
Wolfgang Denk | 66e8d44 | 2009-07-24 00:17:48 +0200 | [diff] [blame] | 44 | |
Mike Frysinger | 63b8f12 | 2011-07-08 10:44:25 +0000 | [diff] [blame] | 45 | /* Pull in stuff for the build system */ |
46 | #ifdef DO_DEPS_ONLY | ||||
Simon Glass | 9d1f619 | 2019-08-02 09:44:25 -0600 | [diff] [blame] | 47 | # include <env_internal.h> |
Mike Frysinger | 63b8f12 | 2011-07-08 10:44:25 +0000 | [diff] [blame] | 48 | #endif |
49 | |||||
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 50 | #endif /* __COMMON_H_ */ |