memory: tegra124-emc: Fix dll_change check
The code checking whether the specified memory timing enables DLL
in the EMRS register was reversed. DLL is enabled if bit A0 is low.
Fix the check.
Fixes: 73a7f0a906 ("memory: tegra: Add EMC (external memory controller) driver")
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Link: https://patch.msgid.link/20260126-fix-emc-dllchange-v1-1-47ad3bb63262@nvidia.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
master
parent
ef4d7b9975
commit
9597ab9a82
|
|
@ -608,7 +608,7 @@ static int tegra124_emc_prepare_timing_change(struct tegra_emc *emc,
|
|||
|
||||
if ((last->emc_mode_1 & 0x1) == (timing->emc_mode_1 & 0x1))
|
||||
dll_change = DLL_CHANGE_NONE;
|
||||
else if (timing->emc_mode_1 & 0x1)
|
||||
else if (!(timing->emc_mode_1 & 0x1))
|
||||
dll_change = DLL_CHANGE_ON;
|
||||
else
|
||||
dll_change = DLL_CHANGE_OFF;
|
||||
|
|
|
|||
Loading…
Reference in New Issue