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 #if defined(CONFIG_TARGET_SOCFPGA_ARRIA10) 25 unsigned int dedicated_uart_com_port(const void *blob); 26 unsigned int shared_uart_com_port(const void *blob); 27 unsigned int uart_com_port(const void *blob); 28 #endif 29 30 #endif /* _MISC_H_ */ 31