Wolfgang Denk | 7b64fef | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2004-2006 Atmel Corporation |
| 3 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | 7b64fef | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 5 | */ |
| 6 | #ifndef __ASM_GLOBAL_DATA_H__ |
| 7 | #define __ASM_GLOBAL_DATA_H__ |
| 8 | |
Simon Glass | 5cb4858 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 9 | /* Architecture-specific global data */ |
| 10 | struct arch_global_data { |
Simon Glass | 3d0f8c8 | 2012-12-13 20:49:10 +0000 | [diff] [blame] | 11 | unsigned long cpu_hz; /* cpu core clock frequency */ |
Simon Glass | 5cb4858 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 12 | }; |
| 13 | |
Simon Glass | 47a9789 | 2012-12-13 20:49:15 +0000 | [diff] [blame] | 14 | #include <asm-generic/global_data.h> |
Wolfgang Denk | 7b64fef | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 15 | |
| 16 | #define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm("r5") |
| 17 | |
| 18 | #endif /* __ASM_GLOBAL_DATA_H__ */ |