blob: 46fcfab840791ca157bf56706150ecf075414805 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Rick Chen76c0a242017-12-26 13:55:51 +08002/*
3 * (C) Copyright 2002
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 *
6 * Copyright (c) 2017 Microsemi Corporation.
7 * Padmarao Begari, Microsemi Corporation <padmarao.begari@microsemi.com>
Rick Chen76c0a242017-12-26 13:55:51 +08008 */
9
10#ifndef __ASM_GBL_DATA_H
11#define __ASM_GBL_DATA_H
12
13/* Architecture-specific global data */
14struct arch_global_data {
Bin Mengb6ee5e12018-12-12 06:12:30 -080015#ifdef CONFIG_SIFIVE_CLINT
16 void __iomem *clint; /* clint base address */
17#endif
Rick Chen76c0a242017-12-26 13:55:51 +080018};
19
20#include <asm-generic/global_data.h>
21
Rick Chenb34b4b92018-02-12 11:10:04 +080022#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp")
Rick Chen76c0a242017-12-26 13:55:51 +080023
24#endif /* __ASM_GBL_DATA_H */