blob: 93506dec894e0dfb11ad47eec77eb6e3e96c46f9 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
wdenk12490652004-04-18 21:13:41 +00002/*
3 * (C) Copyright 2004 Atmark Techno, Inc.
4 *
5 * Yasushi SHOJI <yashi@atmark-techno.com>
wdenk12490652004-04-18 21:13:41 +00006 */
7
8#ifndef __ASM_GBL_DATA_H
9#define __ASM_GBL_DATA_H
Simon Glass3ac47d72012-12-13 20:48:30 +000010
Ovidiu Panait87a739e2022-05-31 21:14:31 +030011#include <asm/cpuinfo.h>
12
Simon Glass3ac47d72012-12-13 20:48:30 +000013/* Architecture-specific global data */
14struct arch_global_data {
Ovidiu Panait87a739e2022-05-31 21:14:31 +030015 struct microblaze_cpuinfo cpuinfo;
Simon Glass3ac47d72012-12-13 20:48:30 +000016};
17
Simon Glass8d0820e2012-12-13 20:49:18 +000018#include <asm-generic/global_data.h>
wdenk12490652004-04-18 21:13:41 +000019
20#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r31")
21
Ovidiu Panait87a739e2022-05-31 21:14:31 +030022#define gd_cpuinfo() ((struct microblaze_cpuinfo *)&gd->arch.cpuinfo)
23
wdenk12490652004-04-18 21:13:41 +000024#endif /* __ASM_GBL_DATA_H */