soc.h 627 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (C) 2020 Western Digital Corporation or its affiliates.
  4. * Copyright (C) 2020 Google, Inc
  5. */
  6. #ifndef _ASM_RISCV_SOC_H
  7. #define _ASM_RISCV_SOC_H
  8. #include <linux/of.h>
  9. #include <linux/linkage.h>
  10. #include <linux/types.h>
  11. #define SOC_EARLY_INIT_DECLARE(name, compat, fn) \
  12. static const struct of_device_id __soc_early_init__##name \
  13. __used __section("__soc_early_init_table") \
  14. = { .compatible = compat, .data = fn }
  15. void soc_early_init(void);
  16. extern unsigned long __soc_early_init_table_start;
  17. extern unsigned long __soc_early_init_table_end;
  18. #endif