Skip to content

Commit 0553d7b

Browse files
committed
memory: tegra: Support derated timings on Tegra210
Derated timings are used to ensure that the memory chips keep operating correctly at high temperatures. This adds code to support polling of the chip operating state when high temperatures are measured on the chip and change the refresh mode accordingly. Under very high temperatures, the driver will switch to the derated tables to ensure proper operation of the memory chips. Signed-off-by: Thierry Reding <[email protected]>
1 parent 9b9d863 commit 0553d7b

File tree

4 files changed

+363
-13
lines changed

4 files changed

+363
-13
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,9 @@ static void tegra210_emc_r21021_set_clock(struct tegra210_emc *emc, u32 clksrc)
10701070
emc_writel(emc, value, offset);
10711071
}
10721072

1073+
/* SW addition: do EMC refresh adjustment here. */
1074+
tegra210_emc_adjust_timing(emc, next);
1075+
10731076
if (dram_type == DRAM_TYPE_LPDDR4) {
10741077
value = (23 << EMC_MRW_MRW_MA_SHIFT) |
10751078
(next->run_clocks & EMC_MRW_MRW_OP_MASK);

0 commit comments

Comments
 (0)