blob: 4fc9570a0495cb0657eb21864009c90b2a223316 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Ley Foon Tanb149f2b2017-04-26 02:44:36 +08002/*
3 * Copyright (C) 2016-2017 Intel Corporation
Ley Foon Tanb149f2b2017-04-26 02:44:36 +08004 */
5
6#ifndef _MISC_H_
7#define _MISC_H_
8
9void dwmac_deassert_reset(const unsigned int of_reset_id, const u32 phymode);
10
11struct bsel {
12 const char *mode;
13 const char *name;
14};
15
16extern struct bsel bsel_str[];
17
18#ifdef CONFIG_FPGA
19void socfpga_fpga_add(void);
20#else
21static inline void socfpga_fpga_add(void) {}
22#endif
23
Simon Goldschmidt8e302032018-08-13 21:34:35 +020024#ifdef CONFIG_TARGET_SOCFPGA_GEN5
25void socfpga_sdram_remap_zero(void);
26#endif
27
Marek Vasut8fdb4192018-08-18 19:11:52 +020028#ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
29void socfpga_init_security_policies(void);
30void socfpga_sdram_remap_zero(void);
31#endif
32
Ley Foon Tan4cc6b582018-05-24 00:17:23 +080033void do_bridge_reset(int enable);
34
Ley Foon Tanb149f2b2017-04-26 02:44:36 +080035#endif /* _MISC_H_ */