memory: tegra: Add EMC scaling sequence code for Tegra210
authorJoseph Lo <josephl@nvidia.com>
Wed, 29 May 2019 08:21:37 +0000 (16:21 +0800)
committerThierry Reding <treding@nvidia.com>
Mon, 22 Jun 2020 11:54:57 +0000 (13:54 +0200)
commit9b9d8632f51f3609dfdfe8efc3c1e4e773c6c385
treecce76f8a926775b378c388b6ad5dc1ac87cdd1cf
parent10de21148f7d28c9e918aaee7cede74a7d506e24
memory: tegra: Add EMC scaling sequence code for Tegra210

This patch includes the sequence for clock tuning and the dynamic
training mechanism for the clock above 800MHz.

And historically there have been different sequences to change the EMC
clock. The sequence to be used is specified in the EMC table.
However, for the currently supported upstreaming platform, only the most
recent sequence is used. So only support that in this patch.

Based on the work of Peter De Schrijver <pdeschrijver@nvidia.com>.

Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/memory/tegra/Makefile
drivers/memory/tegra/tegra210-emc-cc-r21021.c [new file with mode: 0644]
drivers/memory/tegra/tegra210-emc-core.c
drivers/memory/tegra/tegra210-emc.h