blob: 0b65783b05598999570ed06a39279a64177168c1 [file] [log] [blame]
Ley Foon Tanb149f2b2017-04-26 02:44:36 +08001/*
2 * Copyright (C) 2016-2017 Intel Corporation
3 *
4 * SPDX-License-Identifier: GPL-2.0
5 */
6
7#ifndef _MISC_H_
8#define _MISC_H_
9
10void dwmac_deassert_reset(const unsigned int of_reset_id, const u32 phymode);
11
12struct bsel {
13 const char *mode;
14 const char *name;
15};
16
17extern struct bsel bsel_str[];
18
19#ifdef CONFIG_FPGA
20void socfpga_fpga_add(void);
21#else
22static inline void socfpga_fpga_add(void) {}
23#endif
24
Ley Foon Tancfd0c542017-04-26 02:44:43 +080025#if defined(CONFIG_TARGET_SOCFPGA_ARRIA10)
26unsigned int dedicated_uart_com_port(const void *blob);
27unsigned int shared_uart_com_port(const void *blob);
28unsigned int uart_com_port(const void *blob);
29#endif
30
Ley Foon Tanb149f2b2017-04-26 02:44:36 +080031#endif /* _MISC_H_ */