Tom Rini | 83d290c | 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 | ec1fa18 | 2019-08-02 09:44:27 -0600 | [diff] [blame] | 3 | * Common header file for U-Boot |
4 | * | ||||
Simon Glass | addc376 | 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 | ec1fa18 | 2019-08-02 09:44:27 -0600 | [diff] [blame] | 7 | * |
Wolfgang Denk | 3b74e7e | 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 | d0b8fee | 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 | fcd3c87 | 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 | 2307ea4 | 2016-04-04 04:07:33 -0500 | [diff] [blame] | 17 | #include <errno.h> |
Masahiro Yamada | a7b8176 | 2016-12-28 00:36:00 +0900 | [diff] [blame] | 18 | #include <time.h> |
Wolfgang Denk | 25ddd1f | 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 | 0a70fb4 | 2017-09-16 14:10:45 +0900 | [diff] [blame] | 21 | #include <linux/bug.h> |
Masahiro Yamada | 5bc516e | 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 | b44b302 | 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 | 9aed508 | 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 | 7fea7b1 | 2017-09-16 14:10:39 +0900 | [diff] [blame] | 29 | #include <stdio.h> |
Masahiro Yamada | cba1da4 | 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 | 0e98b0a | 2017-12-04 13:48:20 -0700 | [diff] [blame] | 34 | #include <log.h> |
wdenk | c83bf6a | 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 | dafa84d | 2018-03-09 18:28:12 +0100 | [diff] [blame] | 37 | #include <init.h> |
Simon Glass | 2ea09c8 | 2015-04-28 20:25:07 -0600 | [diff] [blame] | 38 | #include <display_options.h> |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 39 | #include <uuid.h> |
Simon Glass | 9785c90 | 2011-11-02 09:52:07 +0000 | [diff] [blame] | 40 | #include <vsprintf.h> |
Joe Hershberger | 4ef8d53 | 2012-05-23 08:01:04 +0000 | [diff] [blame] | 41 | #include <net.h> |
Simon Glass | 097e178 | 2012-01-14 15:24:44 +0000 | [diff] [blame] | 42 | #include <bootstage.h> |
Andre Przywara | 2a6713b | 2017-01-02 11:48:30 +0000 | [diff] [blame] | 43 | #endif /* __ASSEMBLY__ */ |
Wolfgang Denk | fcd3c87 | 2009-07-24 00:17:48 +0200 | [diff] [blame] | 44 | |
Mike Frysinger | c3eb3fe | 2011-07-08 10:44:25 +0000 | [diff] [blame] | 45 | /* Pull in stuff for the build system */ |
46 | #ifdef DO_DEPS_ONLY | ||||
Simon Glass | f3998fd | 2019-08-02 09:44:25 -0600 | [diff] [blame] | 47 | # include <env_internal.h> |
Mike Frysinger | c3eb3fe | 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_ */ |