Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 1 | /* |
| 2 | * U-boot - global_data.h Declarations for global data of u-boot |
| 3 | * |
Aubrey Li | 155fd76 | 2007-04-05 18:31:18 +0800 | [diff] [blame] | 4 | * Copyright (c) 2005-2007 Analog Devices Inc. |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 5 | * |
Wolfgang Denk | 91a7675 | 2010-07-24 20:22:02 +0200 | [diff] [blame] | 6 | * (C) Copyright 2000-2010 |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 7 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 8 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | * SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | 6cb142f | 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 | f5402d4 | 2009-11-09 18:08:09 -0500 | [diff] [blame] | 15 | #include <asm/u-boot.h> |
| 16 | |
Simon Glass | 5cb4858 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 17 | /* Architecture-specific global data */ |
| 18 | struct arch_global_data { |
Simon Glass | 4da2551 | 2013-03-05 14:39:59 +0000 | [diff] [blame] | 19 | unsigned long board_type; |
Simon Glass | 5cb4858 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 20 | }; |
| 21 | |
Simon Glass | 06b507b | 2012-12-13 20:49:16 +0000 | [diff] [blame] | 22 | #include <asm-generic/global_data.h> |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 23 | |
Mike Frysinger | 33e7e60 | 2012-02-16 01:10:43 -0500 | [diff] [blame] | 24 | #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("P3") |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 25 | |
| 26 | #endif |