b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * U-boot - global_data.h Declarations for global data of u-boot |
| 3 | * |
| 4 | * Copyright (c) 2005-2007 Analog Devices Inc. |
| 5 | * |
| 6 | * (C) Copyright 2000-2010 |
| 7 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 8 | * |
| 9 | * SPDX-License-Identifier: GPL-2.0+ |
| 10 | */ |
| 11 | |
| 12 | #ifndef __ASM_GBL_DATA_H |
| 13 | #define __ASM_GBL_DATA_H |
| 14 | |
| 15 | #include <asm/u-boot.h> |
| 16 | |
| 17 | /* Architecture-specific global data */ |
| 18 | struct arch_global_data { |
| 19 | unsigned long board_type; |
| 20 | }; |
| 21 | |
| 22 | #include <asm-generic/global_data.h> |
| 23 | |
| 24 | #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("P3") |
| 25 | |
| 26 | #endif |