projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbaf095
)
ddr: marvell: use correct TREFI value
author
Chris Packham
<judge.packham@gmail.com>
Thu, 18 Jan 2018 04:16:08 +0000
(17:16 +1300)
committer
Stefan Roese
<sr@denx.de>
Fri, 19 Jan 2018 15:30:29 +0000
(16:30 +0100)
The ternary operation had the HIGH/LOW values the
wrong way round. Update it to use the correct value.
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/ddr/marvell/a38x/ddr3_training.c
patch
|
blob
|
history
diff --git
a/drivers/ddr/marvell/a38x/ddr3_training.c
b/drivers/ddr/marvell/a38x/ddr3_training.c
index 043143adf08af608e67c3e25adfdef531d929dee..2eb6e05783d4fdb477b85b592b30232b117af057 100644
(file)
--- a/
drivers/ddr/marvell/a38x/ddr3_training.c
+++ b/
drivers/ddr/marvell/a38x/ddr3_training.c
@@
-1375,7
+1375,7
@@
int ddr3_tip_freq_set(u32 dev_num, enum hws_access_type access_type,
/* adjust t_refi to new frequency */
t_refi = (tm->interface_params[if_id].interface_temp ==
- HWS_TEMP_HIGH) ? TREFI_
LOW : TREFI_HIGH
;
+ HWS_TEMP_HIGH) ? TREFI_
HIGH : TREFI_LOW
;
t_refi *= 1000; /*psec */
/* HCLK in[ps] */