1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2016-2017 Intel Corporation 4 */ 5 6 #ifndef _MISC_H_ 7 #define _MISC_H_ 8 9 void dwmac_deassert_reset(const unsigned int of_reset_id, const u32 phymode); 10 11 struct bsel { 12 const char *mode; 13 const char *name; 14 }; 15 16 extern struct bsel bsel_str[]; 17 18 #ifdef CONFIG_FPGA 19 void socfpga_fpga_add(void); 20 #else 21 static inline void socfpga_fpga_add(void) {} 22 #endif 23 24 #ifdef CONFIG_TARGET_SOCFPGA_GEN5 25 void socfpga_sdram_remap_zero(void); 26 #endif 27 28 #ifdef CONFIG_TARGET_SOCFPGA_ARRIA10 29 void socfpga_init_security_policies(void); 30 void socfpga_sdram_remap_zero(void); 31 #endif 32 33 void do_bridge_reset(int enable); 34 35 #endif /* _MISC_H_ */ 36