OSDN Git Service

Merge tag 'libata-5.7-2020-04-09' of git://git.kernel.dk/linux-block
[tomoyo/tomoyo-test1.git] / arch / riscv / include / asm / soc.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright (C) 2020 Western Digital Corporation or its affiliates.
4  */
5
6 #ifndef _ASM_RISCV_SOC_H
7 #define _ASM_RISCV_SOC_H
8
9 #include <linux/of.h>
10 #include <linux/linkage.h>
11 #include <linux/types.h>
12
13 #define SOC_EARLY_INIT_DECLARE(name, compat, fn)                        \
14         static const struct of_device_id __soc_early_init__##name       \
15                 __used __section(__soc_early_init_table)                \
16                  = { .compatible = compat, .data = fn  }
17
18 void soc_early_init(void);
19
20 extern unsigned long __soc_early_init_table_start;
21 extern unsigned long __soc_early_init_table_end;
22
23 #endif