ARM: dts: meson-sm1-odroid-c4: add ethernet PHY reset
[platform/kernel/u-boot.git] / arch / riscv / include / asm / global_data.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
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>
8  */
9
10 #ifndef __ASM_GBL_DATA_H
11 #define __ASM_GBL_DATA_H
12
13 #include <asm/smp.h>
14
15 /* Architecture-specific global data */
16 struct arch_global_data {
17         long boot_hart;         /* boot hart id */
18         phys_addr_t firmware_fdt_addr;
19 #ifdef CONFIG_SIFIVE_CLINT
20         void __iomem *clint;    /* clint base address */
21 #endif
22 #ifdef CONFIG_ANDES_PLIC
23         void __iomem *plic;     /* plic base address */
24 #endif
25 #ifdef CONFIG_ANDES_PLMT
26         void __iomem *plmt;     /* plmt base address */
27 #endif
28 #if CONFIG_IS_ENABLED(SMP)
29         struct ipi_data ipi[CONFIG_NR_CPUS];
30 #endif
31 #ifndef CONFIG_XIP
32         ulong available_harts;
33 #endif
34 };
35
36 #include <asm-generic/global_data.h>
37
38 #define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp")
39
40 #endif /* __ASM_GBL_DATA_H */