mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 17:22:22 +02:00
ddr: marvell: use correct TREFI value
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>
This commit is contained in:
committed by
Stefan Roese
parent
dbaf09590d
commit
2efd27f76a
@@ -1375,7 +1375,7 @@ int ddr3_tip_freq_set(u32 dev_num, enum hws_access_type access_type,
|
|||||||
|
|
||||||
/* adjust t_refi to new frequency */
|
/* adjust t_refi to new frequency */
|
||||||
t_refi = (tm->interface_params[if_id].interface_temp ==
|
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 */
|
t_refi *= 1000; /*psec */
|
||||||
|
|
||||||
/* HCLK in[ps] */
|
/* HCLK in[ps] */
|
||||||
|
Reference in New Issue
Block a user