blob: 69a6971dd02b60847018a71c6f241bc7d25286e6 [file] [log] [blame]
Wolfgang Denk97caf672006-03-12 02:12:27 +01001/*
Bin Meng75574052016-02-05 19:30:11 -08002 * U-Boot - global_data.h Declarations for global data of U-Boot
Wolfgang Denk97caf672006-03-12 02:12:27 +01003 *
Aubrey Li314d22f2007-04-05 18:31:18 +08004 * Copyright (c) 2005-2007 Analog Devices Inc.
Wolfgang Denk97caf672006-03-12 02:12:27 +01005 *
Wolfgang Denkf710efd2010-07-24 20:22:02 +02006 * (C) Copyright 2000-2010
Wolfgang Denk97caf672006-03-12 02:12:27 +01007 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02009 * SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk97caf672006-03-12 02:12:27 +010010 */
11
12#ifndef __ASM_GBL_DATA_H
13#define __ASM_GBL_DATA_H
14
Mike Frysinger66bcb2c2009-11-09 18:08:09 -050015#include <asm/u-boot.h>
16
Simon Glass3ac47d72012-12-13 20:48:30 +000017/* Architecture-specific global data */
18struct arch_global_data {
Simon Glassbbeac162013-03-05 14:39:59 +000019 unsigned long board_type;
Simon Glass3ac47d72012-12-13 20:48:30 +000020};
21
Simon Glass87031d52012-12-13 20:49:16 +000022#include <asm-generic/global_data.h>
Wolfgang Denk97caf672006-03-12 02:12:27 +010023
Mike Frysinger5dd14f82012-02-16 01:10:43 -050024#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("P3")
Wolfgang Denk97caf672006-03-12 02:12:27 +010025
26#endif