fdt_reset_htif.c 603 B

12345678910111213141516171819202122232425262728
  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. #include <sbi_utils/reset/fdt_reset.h>
  10. #include <sbi_utils/fdt/fdt_helper.h>
  11. #include <sbi_utils/sys/htif.h>
  12. static int htif_reset_init(void *fdt, int nodeoff,
  13. const struct fdt_match *match)
  14. {
  15. return htif_system_reset_init();
  16. }
  17. static const struct fdt_match htif_reset_match[] = {
  18. { .compatible = "ucb,htif0" },
  19. { },
  20. };
  21. struct fdt_reset fdt_reset_htif = {
  22. .match_table = htif_reset_match,
  23. .init = htif_reset_init
  24. };