fdt_serial_htif.c 606 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/fdt/fdt_helper.h>
  10. #include <sbi_utils/serial/fdt_serial.h>
  11. #include <sbi_utils/sys/htif.h>
  12. static const struct fdt_match serial_htif_match[] = {
  13. { .compatible = "ucb,htif0" },
  14. { },
  15. };
  16. static int serial_htif_init(void *fdt, int nodeoff,
  17. const struct fdt_match *match)
  18. {
  19. return htif_serial_init();
  20. }
  21. struct fdt_serial fdt_serial_htif = {
  22. .match_table = serial_htif_match,
  23. .init = serial_htif_init
  24. };