2018-05-07 06:58:06 +09:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2017-12-26 14:55:51 +09:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2002
|
|
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
*
|
|
|
|
* Copyright (c) 2017 Microsemi Corporation.
|
|
|
|
* Padmarao Begari, Microsemi Corporation <padmarao.begari@microsemi.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_GBL_DATA_H
|
|
|
|
#define __ASM_GBL_DATA_H
|
|
|
|
|
|
|
|
/* Architecture-specific global data */
|
|
|
|
struct arch_global_data {
|
2018-12-12 23:12:45 +09:00
|
|
|
long boot_hart; /* boot hart id */
|
2018-12-12 23:12:30 +09:00
|
|
|
#ifdef CONFIG_SIFIVE_CLINT
|
|
|
|
void __iomem *clint; /* clint base address */
|
|
|
|
#endif
|
2017-12-26 14:55:51 +09:00
|
|
|
};
|
|
|
|
|
|
|
|
#include <asm-generic/global_data.h>
|
|
|
|
|
2018-02-12 12:10:04 +09:00
|
|
|
#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp")
|
2017-12-26 14:55:51 +09:00
|
|
|
|
|
|
|
#endif /* __ASM_GBL_DATA_H */
|