blob: d82fb7cc6d807c63637b452e83f15352713423e1 [file] [log] [blame]
Wolfgang Denk7b64fef2006-10-24 14:21:16 +02001/*
2 * Copyright (C) 2004-2006 Atmel Corporation
3 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk7b64fef2006-10-24 14:21:16 +02005 */
6#ifndef __ASM_GLOBAL_DATA_H__
7#define __ASM_GLOBAL_DATA_H__
8
Simon Glass5cb48582012-12-13 20:48:30 +00009/* Architecture-specific global data */
10struct arch_global_data {
Simon Glass1c865d52012-12-13 20:49:09 +000011 unsigned long stack_end; /* highest stack address */
Simon Glass3d0f8c82012-12-13 20:49:10 +000012 unsigned long cpu_hz; /* cpu core clock frequency */
Simon Glass5cb48582012-12-13 20:48:30 +000013};
14
Simon Glass47a97892012-12-13 20:49:15 +000015#include <asm-generic/global_data.h>
Wolfgang Denk7b64fef2006-10-24 14:21:16 +020016
17#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm("r5")
18
19#endif /* __ASM_GLOBAL_DATA_H__ */