]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: ti: ddr3: Fix ecc address calculation
authorLokesh Vutla <lokeshvutla@ti.com>
Mon, 16 Sep 2019 08:17:16 +0000 (13:47 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 11 Oct 2019 17:31:17 +0000 (13:31 -0400)
commit2d616f0d4135f4fd68f504e2ff356ebeafd5a033
tree045ee1211c33a64963d2518791adcd793cfe1ba6
parentd6f4c571d738790b75c1de4a340b9edd0885ed37
cmd: ti: ddr3: Fix ecc address calculation

ecc_address_range registers contains the start address and end address
of the DDR address space. But the ddr cmd driver is assuming the register
contains the start address and size of the DDR address space. Because
of this some valid ecc addresses are errored out as invalid address.
Fix this calculation.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
cmd/ti/ddr3.c