Skip to content

Commit be4c5c6

Browse files
diogoivokrzk
authored andcommitted
memory: tegra: read values from correct device
When reading MR18 for Dev1 the code was incorrectly reading the value corresponding to Dev0, so fix this by adjusting the index according to the Tegra X1 TRM. Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt> Acked-by: Thierry Reding <treding@nvidia.com> Link: https://lore.kernel.org/r/20230322234050.47332-1-diogo.ivo@tecnico.ulisboa.pt Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent 69d170c commit be4c5c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/memory/tegra/tegra210-emc-cc-r21021.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ static u32 update_clock_tree_delay(struct tegra210_emc *emc, int type)
277277
/*
278278
* Dev1 LSB.
279279
*/
280-
value = tegra210_emc_mrr_read(emc, 2, 18);
280+
value = tegra210_emc_mrr_read(emc, 1, 18);
281281

282282
for (i = 0; i < emc->num_channels; i++) {
283283
temp[i][0] |= (value & 0x00ff) >> 0;

0 commit comments

Comments
 (0)