Lines Matching +full:axi +full:- +full:config

1 // SPDX-License-Identifier: BSD-3-Clause
24 clrsetbits_le32(&fpgamgr_regs->ctrl, in fpgamgr_set_cd_ratio()
35 msel = readl(&fpgamgr_regs->stat); in fpgamgr_program_init()
44 setbits_le32(&fpgamgr_regs->ctrl, in fpgamgr_program_init()
59 clrbits_le32(&fpgamgr_regs->ctrl, in fpgamgr_program_init()
75 clrbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_NCE_MASK); in fpgamgr_program_init()
78 setbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_EN_MASK); in fpgamgr_program_init()
81 setbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_NCONFIGPULL_MASK); in fpgamgr_program_init()
92 return -1; in fpgamgr_program_init()
96 clrbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_NCONFIGPULL_MASK); in fpgamgr_program_init()
107 return -2; in fpgamgr_program_init()
111 writel(0xFFF, &fpgamgr_regs->gpio_porta_eoi); in fpgamgr_program_init()
113 /* Enable AXI configuration */ in fpgamgr_program_init()
114 setbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_AXICFGEN_MASK); in fpgamgr_program_init()
119 /* Ensure the FPGA entering config done */
126 /* (3) wait until full config done */ in fpgamgr_program_poll_cd()
128 reg = readl(&fpgamgr_regs->gpio_ext_porta); in fpgamgr_program_poll_cd()
130 /* Config error */ in fpgamgr_program_poll_cd()
133 return -3; in fpgamgr_program_poll_cd()
136 /* Config done without error */ in fpgamgr_program_poll_cd()
144 return -4; in fpgamgr_program_poll_cd()
147 /* Disable AXI configuration */ in fpgamgr_program_poll_cd()
148 clrbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_AXICFGEN_MASK); in fpgamgr_program_poll_cd()
160 return -5; in fpgamgr_program_poll_initphase()
172 return -6; in fpgamgr_program_poll_initphase()
184 return -7; in fpgamgr_program_poll_usermode()
193 return -8; in fpgamgr_program_poll_usermode()
196 clrbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_EN_MASK); in fpgamgr_program_poll_usermode()
203 * Return 0 for sucess, non-zero for error.
211 return -EINVAL; in socfpga_load()
217 writel(0, &sysmgr_regs->fpgaintfgrp_module); in socfpga_load()
223 /* Disable all axi bridge (hps2fpga, lwhps2fpga & fpga2hps) */ in socfpga_load()
226 /* Unmap the bridges from NIC-301 */ in socfpga_load()
237 /* Ensure the FPGA entering config done */ in socfpga_load()