memory: tegra: Correct shift value of apew
authorNicolin Chen <nicoleotsuka@gmail.com>
Tue, 18 Aug 2020 09:51:21 +0000 (02:51 -0700)
committerKrzysztof Kozlowski <krzk@kernel.org>
Thu, 20 Aug 2020 15:24:20 +0000 (17:24 +0200)
According to Tegra X1 (Tegra210) TRM, the APEW field is between
[23:16] so the shift bit for apew should be 16 accordingly.

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/20200818095121.13645-1-nicoleotsuka@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/memory/tegra/tegra210.c

index cc04824..3bdd781 100644 (file)
@@ -842,7 +842,7 @@ static const struct tegra_mc_client tegra210_mc_clients[] = {
                },
                .la = {
                        .reg = 0x3dc,
-                       .shift = 0,
+                       .shift = 16,
                        .mask = 0xff,
                        .def = 0x80,
                },