memory: tegra: Support DVFS on Tegra186 and later
authorThierry Reding <treding@nvidia.com>
Sun, 22 Dec 2019 14:10:30 +0000 (15:10 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 9 Jan 2020 18:35:54 +0000 (19:35 +0100)
commit52d15dd23f0b0f1d1cf87b1581cc5f1f8c22eb0c
tree99319ea5760db5b44123ca3abea62167f48ba64b
parent177602b006414b02152d3ef670746beb2bfde9cd
memory: tegra: Support DVFS on Tegra186 and later

Add a Tegra186 (and later) EMC driver that reads the EMC DVFS tables
from BPMP and uses the EMC clock to change the external memory clock.

This currently only provides a debugfs interface to show the available
frequencies and set lower and upper limits of the allowed range. This
can be used for testing the various frequencies. The goal is to
eventually integrate this with the interconnect framework so that the
EMC frequency can be scaled based on demand from memory clients.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/memory/tegra/Makefile
drivers/memory/tegra/tegra186-emc.c [new file with mode: 0644]
drivers/memory/tegra/tegra186.c