mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
ram: rk3399: Get lpddr4 tsel_rd_en from io settings
For base.odt 1 the lpddr4 tsel_rd_en value is depending on IO settings of rd_odt_en. Add support for it. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: YouMin Chen <cym@rock-chips.com> Reviewed-by: Kever Yang <Kever.yang@rock-chips.com>
This commit is contained in:
parent
f288d54936
commit
4eceda01d5
1 changed files with 6 additions and 2 deletions
|
@ -645,10 +645,14 @@ static void set_ds_odt(const struct chan_info *chan,
|
|||
tsel_ckcs_select_n = PHY_DRV_ODT_34_3;
|
||||
}
|
||||
|
||||
if (params->base.odt == 1)
|
||||
if (params->base.odt == 1) {
|
||||
tsel_rd_en = 1;
|
||||
else
|
||||
|
||||
if (params->base.dramtype == LPDDR4)
|
||||
tsel_rd_en = io->rd_odt_en;
|
||||
} else {
|
||||
tsel_rd_en = 0;
|
||||
}
|
||||
|
||||
tsel_wr_en = 0;
|
||||
tsel_idle_en = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue