ARM: socfpga: Enable OCRAM ECC on startup
[cascardo/linux.git] / arch / arm / mach-socfpga / socfpga.c
index dd1ff07..7e0aad2 100644 (file)
@@ -61,6 +61,9 @@ static void __init socfpga_init_irq(void)
        socfpga_sysmgr_init();
        if (IS_ENABLED(CONFIG_EDAC_ALTERA_L2C))
                socfpga_init_l2_ecc();
+
+       if (IS_ENABLED(CONFIG_EDAC_ALTERA_OCRAM))
+               socfpga_init_ocram_ecc();
 }
 
 static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd)