fdt_serial.h 514 B

123456789101112131415161718192021222324252627282930
  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 __FDT_SERIAL_H__
  10. #define __FDT_SERIAL_H__
  11. #include <sbi/sbi_types.h>
  12. #ifdef CONFIG_FDT_SERIAL
  13. struct fdt_serial {
  14. const struct fdt_match *match_table;
  15. int (*init)(void *fdt, int nodeoff, const struct fdt_match *match);
  16. };
  17. int fdt_serial_init(void);
  18. #else
  19. static inline int fdt_serial_init(void) { return 0; }
  20. #endif
  21. #endif