misc.h 629 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2016-2017 Intel Corporation
  4. */
  5. #ifndef _MISC_H_
  6. #define _MISC_H_
  7. void dwmac_deassert_reset(const unsigned int of_reset_id, const u32 phymode);
  8. struct bsel {
  9. const char *mode;
  10. const char *name;
  11. };
  12. extern struct bsel bsel_str[];
  13. #ifdef CONFIG_FPGA
  14. void socfpga_fpga_add(void);
  15. #else
  16. static inline void socfpga_fpga_add(void) {}
  17. #endif
  18. #if defined(CONFIG_TARGET_SOCFPGA_ARRIA10)
  19. unsigned int dedicated_uart_com_port(const void *blob);
  20. unsigned int shared_uart_com_port(const void *blob);
  21. unsigned int uart_com_port(const void *blob);
  22. #endif
  23. #endif /* _MISC_H_ */