misc.h 632 B

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