misc.h 662 B

1234567891011121314151617181920212223242526272829303132333435
  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. #ifdef CONFIG_TARGET_SOCFPGA_GEN5
  19. void socfpga_sdram_remap_zero(void);
  20. #endif
  21. #ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
  22. void socfpga_init_security_policies(void);
  23. void socfpga_sdram_remap_zero(void);
  24. #endif
  25. void do_bridge_reset(int enable);
  26. #endif /* _MISC_H_ */