Wolfgang Denk | 97caf67 | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 1 | /* |
Bin Meng | 7557405 | 2016-02-05 19:30:11 -0800 | [diff] [blame^] | 2 | * U-Boot - global_data.h Declarations for global data of U-Boot |
Wolfgang Denk | 97caf67 | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 3 | * |
Aubrey Li | 314d22f | 2007-04-05 18:31:18 +0800 | [diff] [blame] | 4 | * Copyright (c) 2005-2007 Analog Devices Inc. |
Wolfgang Denk | 97caf67 | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 5 | * |
Wolfgang Denk | f710efd | 2010-07-24 20:22:02 +0200 | [diff] [blame] | 6 | * (C) Copyright 2000-2010 |
Wolfgang Denk | 97caf67 | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 7 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
8 | * | ||||
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | * SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | 97caf67 | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 10 | */ |
11 | |||||
12 | #ifndef __ASM_GBL_DATA_H | ||||
13 | #define __ASM_GBL_DATA_H | ||||
14 | |||||
Mike Frysinger | 66bcb2c | 2009-11-09 18:08:09 -0500 | [diff] [blame] | 15 | #include <asm/u-boot.h> |
16 | |||||
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 17 | /* Architecture-specific global data */ |
18 | struct arch_global_data { | ||||
Simon Glass | bbeac16 | 2013-03-05 14:39:59 +0000 | [diff] [blame] | 19 | unsigned long board_type; |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 20 | }; |
21 | |||||
Simon Glass | 87031d5 | 2012-12-13 20:49:16 +0000 | [diff] [blame] | 22 | #include <asm-generic/global_data.h> |
Wolfgang Denk | 97caf67 | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 23 | |
Mike Frysinger | 5dd14f8 | 2012-02-16 01:10:43 -0500 | [diff] [blame] | 24 | #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("P3") |
Wolfgang Denk | 97caf67 | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 25 | |
26 | #endif |