platform_override.h 747 B

1234567891011121314151617181920212223242526
  1. /*
  2. * SPDX-License-Identifier: BSD-2-Clause
  3. *
  4. * Copyright (c) 2020 Western Digital Corporation or its affiliates.
  5. *
  6. * Authors:
  7. * Anup Patel <anup.patel@wdc.com>
  8. */
  9. #ifndef __PLATFORM_OVERRIDE_H__
  10. #define __PLATFORM_OVERRIDE_H__
  11. #include <sbi/sbi_types.h>
  12. struct platform_override {
  13. const struct fdt_match *match_table;
  14. u64 (*features)(const struct fdt_match *match);
  15. u64 (*tlbr_flush_limit)(const struct fdt_match *match);
  16. int (*early_init)(bool cold_boot, const struct fdt_match *match);
  17. int (*final_init)(bool cold_boot, const struct fdt_match *match);
  18. void (*early_exit)(const struct fdt_match *match);
  19. void (*final_exit)(const struct fdt_match *match);
  20. int (*fdt_fixup)(void *fdt, const struct fdt_match *match);
  21. };
  22. #endif