blob: 0ef8505fc79326359b59a4b52cb10f413e749b1f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
wdenke2211742002-11-02 23:30:20 +00002/*
Simon Glass1ed83ba2019-08-02 09:44:27 -06003 * Common header file for U-Boot
4 *
Simon Glassde69e5c2019-12-28 10:45:12 -07005 * This file still includes quite a few headers that should be included
6 * individually as needed. Patches to remove things are welcome.
Simon Glass1ed83ba2019-08-02 09:44:27 -06007 *
Wolfgang Denkf342f862009-05-16 10:47:45 +02008 * (C) Copyright 2000-2009
wdenke2211742002-11-02 23:30:20 +00009 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
wdenke2211742002-11-02 23:30:20 +000010 */
11
12#ifndef __COMMON_H_
Wolfgang Denkbcbd5212012-01-06 07:36:44 +010013#define __COMMON_H_ 1
wdenke2211742002-11-02 23:30:20 +000014
Wolfgang Denk66e8d442009-07-24 00:17:48 +020015#ifndef __ASSEMBLY__ /* put C only stuff in this section */
wdenke2211742002-11-02 23:30:20 +000016#include <config.h>
Joe Hershbergercbf1a932016-04-04 04:07:33 -050017#include <errno.h>
Masahiro Yamadaa4f0b8e2016-12-28 00:36:00 +090018#include <time.h>
Wolfgang Denk0191e472010-10-26 14:34:52 +020019#include <asm-offsets.h>
wdenke2211742002-11-02 23:30:20 +000020#include <linux/bitops.h>
Masahiro Yamada958f0f02017-09-16 14:10:45 +090021#include <linux/bug.h>
Masahiro Yamada29d2a622016-12-28 00:35:59 +090022#include <linux/delay.h>
wdenke2211742002-11-02 23:30:20 +000023#include <linux/types.h>
Masahiro Yamadabf9c2932017-09-16 14:10:40 +090024#include <linux/printk.h>
wdenke2211742002-11-02 23:30:20 +000025#include <linux/string.h>
Marek Vasuta3f16342012-09-27 17:08:15 +020026#include <linux/stringify.h>
wdenke2211742002-11-02 23:30:20 +000027#include <asm/ptrace.h>
28#include <stdarg.h>
Masahiro Yamada5e882e92017-09-16 14:10:39 +090029#include <stdio.h>
Masahiro Yamadabd426622014-11-07 03:03:28 +090030#include <linux/kernel.h>
wdenke2211742002-11-02 23:30:20 +000031#include <part.h>
32#include <flash.h>
33#include <image.h>
Simon Glass9054a022017-12-04 13:48:20 -070034#include <log.h>
wdenk87249ba2004-01-06 22:38:14 +000035#include <asm/u-boot.h> /* boot information for Linux kernel */
wdenke2211742002-11-02 23:30:20 +000036#include <asm/global_data.h> /* global data used for startup functions */
Patrick Delaunayc6bfcd52018-03-09 18:28:12 +010037#include <init.h>
Simon Glass7da617c2015-04-28 20:25:07 -060038#include <display_options.h>
Przemyslaw Marczak0c813362014-04-02 10:20:03 +020039#include <uuid.h>
Simon Glassf7ae68062011-11-02 09:52:07 +000040#include <vsprintf.h>
Joe Hershberger05a377b2012-05-23 08:01:04 +000041#include <net.h>
Simon Glass8445d002012-01-14 15:24:44 +000042#include <bootstage.h>
Andre Przywara9fcee532017-01-02 11:48:30 +000043#endif /* __ASSEMBLY__ */
Wolfgang Denk66e8d442009-07-24 00:17:48 +020044
Mike Frysinger63b8f122011-07-08 10:44:25 +000045/* Pull in stuff for the build system */
46#ifdef DO_DEPS_ONLY
Simon Glass9d1f6192019-08-02 09:44:25 -060047# include <env_internal.h>
Mike Frysinger63b8f122011-07-08 10:44:25 +000048#endif
49
wdenke2211742002-11-02 23:30:20 +000050#endif /* __COMMON_H_ */