Skip to content
Snippets Groups Projects
Commit e92a6b2e authored by Lokesh Vutla's avatar Lokesh Vutla Committed by Tom Rini
Browse files

board: ks2: Enable ECC using detected DDR size


EEC is being enabled based on the ddr size populated by SPD data.
But not all keystone platforms have SPD data to detect ddr3 size.
So, enable ECC using the detected DDR size.

Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 6f6c8630
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,9 @@ int dram_init(void)
if (ddr3_size)
ddr3_init_ecc(KS2_DDR3A_EMIF_CTRL_BASE, ddr3_size);
else
ddr3_init_ecc(KS2_DDR3A_EMIF_CTRL_BASE, gd->ram_size >> 30);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment