blob: a3a342c6e1cbe106ad78137b781537a061c1770d [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 Meng89681a72018-12-12 06:12:45 -080015 long boot_hart; /* boot hart id */
Bin Mengb6ee5e12018-12-12 06:12:30 -080016#ifdef CONFIG_SIFIVE_CLINT
17 void __iomem *clint; /* clint base address */
18#endif
Rick Chen76c0a242017-12-26 13:55:51 +080019};
20
21#include <asm-generic/global_data.h>
22
Rick Chenb34b4b92018-02-12 11:10:04 +080023#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp")
Rick Chen76c0a242017-12-26 13:55:51 +080024
25#endif /* __ASM_GBL_DATA_H */