summaryrefslogtreecommitdiff
path: root/drivers/ddr/altera/sequencer.h
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-07-17 01:57:41 +0200
committerMarek Vasut <marex@denx.de>2015-08-08 14:14:14 +0200
commit16502a0b2bcea3e2aa8736871f350196cab262fe (patch)
treee51aa5775dfdcb9c1bc678286a77304e7ffdff21 /drivers/ddr/altera/sequencer.h
parent7c89c2d9cef93d035ee68da128e285eaa89cee2f (diff)
downloadu-boot-imx-16502a0b2bcea3e2aa8736871f350196cab262fe.zip
u-boot-imx-16502a0b2bcea3e2aa8736871f350196cab262fe.tar.gz
u-boot-imx-16502a0b2bcea3e2aa8736871f350196cab262fe.tar.bz2
ddr: altera: Clean up mem_config()
Clean mem_config() function. First, reorder the math done in the function such that WLAT and RLAT computation is together. Then, scrap contradictory comments which do not match the result of the math at all. Next, extract the mem_precharge_and_activate() call from the end of the function as it is completely unrelated here. Finally, rename the function to mem_init_latency(). Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/ddr/altera/sequencer.h')
-rw-r--r--drivers/ddr/altera/sequencer.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/ddr/altera/sequencer.h b/drivers/ddr/altera/sequencer.h
index 5d4d800..3e4152f 100644
--- a/drivers/ddr/altera/sequencer.h
+++ b/drivers/ddr/altera/sequencer.h
@@ -242,10 +242,6 @@ struct gbl_type {
uint32_t curr_read_lat;
- /* current write latency */
-
- uint32_t curr_write_lat;
-
/* error code */
uint32_t error_substage;