Lines Matching +full:socfpga +full:- +full:a10 +full:- +full:ocram +full:- +full:ecc
1 // SPDX-License-Identifier: GPL-2.0-only
20 /* Find the OCRAM EDAC device tree node */ in socfpga_init_ocram_ecc()
21 np = of_find_compatible_node(NULL, NULL, "altr,socfpga-ocram-ecc"); in socfpga_init_ocram_ecc()
23 pr_err("Unable to find socfpga-ocram-ecc\n"); in socfpga_init_ocram_ecc()
30 pr_err("Unable to map OCRAM ecc regs.\n"); in socfpga_init_ocram_ecc()
34 /* Clear any pending OCRAM ECC interrupts, then enable ECC */ in socfpga_init_ocram_ecc()
41 /* Arria10 OCRAM Section */
58 /* ECC Manager Defines */
89 * This function uses the memory initialization block in the Arria10 ECC
90 * controller to initialize/clear the entire memory data and ECC data.
97 while (limit--) { in altr_init_memory_port()
104 return -EBUSY; in altr_init_memory_port()
106 /* Clear any pending ECC interrupts */ in altr_init_memory_port()
120 pr_err("SOCFPGA: sys-mgr is not initialized\n"); in socfpga_init_arria10_ocram_ecc()
124 /* Find the OCRAM EDAC device tree node */ in socfpga_init_arria10_ocram_ecc()
125 np = of_find_compatible_node(NULL, NULL, "altr,socfpga-a10-ocram-ecc"); in socfpga_init_arria10_ocram_ecc()
127 pr_err("Unable to find socfpga-a10-ocram-ecc\n"); in socfpga_init_arria10_ocram_ecc()
131 /* Map the ECC Block */ in socfpga_init_arria10_ocram_ecc()
135 pr_err("Unable to map OCRAM ECC block\n"); in socfpga_init_arria10_ocram_ecc()
139 /* Disable ECC */ in socfpga_init_arria10_ocram_ecc()
150 /* Use HW initialization block to initialize memory for ECC */ in socfpga_init_arria10_ocram_ecc()
153 pr_err("ECC: cannot init OCRAM PORTA memory\n"); in socfpga_init_arria10_ocram_ecc()
157 /* Enable ECC */ in socfpga_init_arria10_ocram_ecc()