Wolfgang Denk | 83c1585 | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2004-2006 Atmel Corporation |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | 83c1585 | 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 | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 9 | /* Architecture-specific global data */ |
| 10 | struct arch_global_data { |
Simon Glass | 421b7c0 | 2012-12-13 20:49:10 +0000 | [diff] [blame] | 11 | unsigned long cpu_hz; /* cpu core clock frequency */ |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 12 | }; |
| 13 | |
Simon Glass | 8ed3a64 | 2012-12-13 20:49:15 +0000 | [diff] [blame] | 14 | #include <asm-generic/global_data.h> |
Wolfgang Denk | 83c1585 | 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__ */ |