1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2016-2017 Intel Corporation
9 #include <asm/sections.h>
11 void dwmac_deassert_reset(const unsigned int of_reset_id, const u32 phymode);
18 extern struct bsel bsel_str[];
21 void socfpga_fpga_add(void *fpga_desc);
23 inline void socfpga_fpga_add(void *fpga_desc) {}
26 #ifdef CONFIG_TARGET_SOCFPGA_GEN5
27 void socfpga_sdram_remap_zero(void);
28 static inline bool socfpga_is_booting_from_fpga(void)
30 if ((__image_copy_start >= (char *)SOCFPGA_FPGA_SLAVES_ADDRESS) &&
31 (__image_copy_start < (char *)SOCFPGA_STM_ADDRESS))
37 #ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
38 void socfpga_init_security_policies(void);
39 void socfpga_sdram_remap_zero(void);
42 void do_bridge_reset(int enable, unsigned int mask);