Lines Matching +full:axi +full:- +full:config
5 * SPDX-License-Identifier: BSD-3-Clause
27 clrsetbits_le32(&fpgamgr_regs->ctrl, in fpgamgr_set_cd_ratio()
38 msel = readl(&fpgamgr_regs->stat); in fpgamgr_program_init()
47 setbits_le32(&fpgamgr_regs->ctrl, in fpgamgr_program_init()
62 clrbits_le32(&fpgamgr_regs->ctrl, in fpgamgr_program_init()
78 clrbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_NCE_MASK); in fpgamgr_program_init()
81 setbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_EN_MASK); in fpgamgr_program_init()
84 setbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_NCONFIGPULL_MASK); in fpgamgr_program_init()
95 return -1; in fpgamgr_program_init()
99 clrbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_NCONFIGPULL_MASK); in fpgamgr_program_init()
110 return -2; in fpgamgr_program_init()
114 writel(0xFFF, &fpgamgr_regs->gpio_porta_eoi); in fpgamgr_program_init()
116 /* Enable AXI configuration */ in fpgamgr_program_init()
117 setbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_AXICFGEN_MASK); in fpgamgr_program_init()
122 /* Ensure the FPGA entering config done */
129 /* (3) wait until full config done */ in fpgamgr_program_poll_cd()
131 reg = readl(&fpgamgr_regs->gpio_ext_porta); in fpgamgr_program_poll_cd()
133 /* Config error */ in fpgamgr_program_poll_cd()
136 return -3; in fpgamgr_program_poll_cd()
139 /* Config done without error */ in fpgamgr_program_poll_cd()
147 return -4; in fpgamgr_program_poll_cd()
150 /* Disable AXI configuration */ in fpgamgr_program_poll_cd()
151 clrbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_AXICFGEN_MASK); in fpgamgr_program_poll_cd()
163 return -5; in fpgamgr_program_poll_initphase()
175 return -6; in fpgamgr_program_poll_initphase()
187 return -7; in fpgamgr_program_poll_usermode()
196 return -8; in fpgamgr_program_poll_usermode()
199 clrbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_EN_MASK); in fpgamgr_program_poll_usermode()
206 * Return 0 for sucess, non-zero for error.
214 return -EINVAL; in socfpga_load()
220 writel(0, &sysmgr_regs->fpgaintfgrp_module); in socfpga_load()
226 /* Disable all axi bridge (hps2fpga, lwhps2fpga & fpga2hps) */ in socfpga_load()
229 /* Unmap the bridges from NIC-301 */ in socfpga_load()
240 /* Ensure the FPGA entering config done */ in socfpga_load()