memory: tegra: Support derated timings on Tegra210
authorThierry Reding <treding@nvidia.com>
Fri, 3 Apr 2020 18:03:15 +0000 (20:03 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 22 Jun 2020 11:54:57 +0000 (13:54 +0200)
commit0553d7b204ef48091e76753175d21d0c30b7ae2a
treeb2ad4e7053be824ff1d5346d3eb4ee2865bf46ce
parent9b9d8632f51f3609dfdfe8efc3c1e4e773c6c385
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 <treding@nvidia.com>
drivers/memory/tegra/tegra210-emc-cc-r21021.c
drivers/memory/tegra/tegra210-emc-core.c
drivers/memory/tegra/tegra210-emc-table.c
drivers/memory/tegra/tegra210-emc.h