diff options
author | Chris Packham <judge.packham@gmail.com> | 2020-01-30 12:50:44 +1300 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2020-04-14 08:59:44 +0200 |
commit | 236609d93c76b9e108d765cd7cf0632063ea8273 (patch) | |
tree | af7271c3b37a41b1731e2c56f06178e6f5d6043d /drivers/ddr/marvell/a38x/mv_ddr_topology.c | |
parent | 891483186052b259852f3f48926ff307763f4eb0 (diff) |
ddr: marvell: a38x: Allow boards to specify CK_DELAY parameter
For some layouts it is necessary to adjust the CK_DELAY parameter to
successfully complete DDR training. Add the ability to specify the
CK_DELAY in the mv_ddr_topology_map.
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'drivers/ddr/marvell/a38x/mv_ddr_topology.c')
-rw-r--r-- | drivers/ddr/marvell/a38x/mv_ddr_topology.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/ddr/marvell/a38x/mv_ddr_topology.c b/drivers/ddr/marvell/a38x/mv_ddr_topology.c index ef3b658a789..09840b1e70f 100644 --- a/drivers/ddr/marvell/a38x/mv_ddr_topology.c +++ b/drivers/ddr/marvell/a38x/mv_ddr_topology.c @@ -229,6 +229,16 @@ int mv_ddr_is_ecc_ena(void) return 0; } +int mv_ddr_ck_delay_get(void) +{ + struct mv_ddr_topology_map *tm = mv_ddr_topology_map_get(); + + if (tm->ck_delay) + return tm->ck_delay; + + return -1; +} + /* translate topology map definition to real memory size in bits */ static unsigned int mem_size[] = { ADDR_SIZE_512MB, |