]> git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/mach-socfpga/include/mach/misc.h
arm: socfpga: Add misc support for Arria 10
[people/ms/u-boot.git] / arch / arm / mach-socfpga / include / mach / misc.h
1 /*
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
10 void dwmac_deassert_reset(const unsigned int of_reset_id, const u32 phymode);
11
12 struct bsel {
13 const char *mode;
14 const char *name;
15 };
16
17 extern struct bsel bsel_str[];
18
19 #ifdef CONFIG_FPGA
20 void socfpga_fpga_add(void);
21 #else
22 static inline void socfpga_fpga_add(void) {}
23 #endif
24
25 #if defined(CONFIG_TARGET_SOCFPGA_ARRIA10)
26 unsigned int dedicated_uart_com_port(const void *blob);
27 unsigned int shared_uart_com_port(const void *blob);
28 unsigned int uart_com_port(const void *blob);
29 #endif
30
31 #endif /* _MISC_H_ */