Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Ley Foon Tan | b149f2b | 2017-04-26 02:44:36 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016-2017 Intel Corporation |
Ley Foon Tan | b149f2b | 2017-04-26 02:44:36 +0800 | [diff] [blame] | 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 | |
Ley Foon Tan | cfd0c54 | 2017-04-26 02:44:43 +0800 | [diff] [blame] | 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 | |
Ley Foon Tan | 4cc6b58 | 2018-05-24 00:17:23 +0800 | [diff] [blame] | 30 | void do_bridge_reset(int enable); |
| 31 | |
Ley Foon Tan | b149f2b | 2017-04-26 02:44:36 +0800 | [diff] [blame] | 32 | #endif /* _MISC_H_ */ |