blob: bb4112f22a3c99a2b5fbaf5fe064d90637a34831 [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>
Tom Rinidec7ea02024-05-20 13:35:03 -060012#include <asm/u-boot.h>
Ovidiu Panait87a739e2022-05-31 21:14:31 +030013
Simon Glass3ac47d72012-12-13 20:48:30 +000014/* Architecture-specific global data */
15struct arch_global_data {
Ovidiu Panait87a739e2022-05-31 21:14:31 +030016 struct microblaze_cpuinfo cpuinfo;
Simon Glass3ac47d72012-12-13 20:48:30 +000017};
18
Simon Glass8d0820e2012-12-13 20:49:18 +000019#include <asm-generic/global_data.h>
wdenk12490652004-04-18 21:13:41 +000020
21#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r31")
22
Ovidiu Panait87a739e2022-05-31 21:14:31 +030023#define gd_cpuinfo() ((struct microblaze_cpuinfo *)&gd->arch.cpuinfo)
24
wdenk12490652004-04-18 21:13:41 +000025#endif /* __ASM_GBL_DATA_H */