OpenCloudOS-Kernel/drivers/memory/tegra
Joseph Lo 10de21148f memory: tegra: Add EMC scaling support code for Tegra210
This is the initial patch for Tegra210 EMC frequency scaling. It has the
code to program various aspects of the EMC that are standardized, but it
does not yet include the specific programming sequence needed for clock
scaling.

The driver is designed to support LPDDR4 SDRAM. Devices that use LPDDR4
need to perform training of the RAM before it can be used. Firmware will
perform this training during early boot and pass a table of supported
frequencies to the kernel via device tree.

For the frequencies above 800 MHz, periodic retraining is needed to
compensate for changes in timing. This periodic training will have to be
performed until the frequency drops back to or below 800 MHz.

This driver provides helpers used during this runtime retraining that
will be used by the sequence specific code in a follow-up patch.

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

Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2020-06-22 13:54:57 +02:00
..
Kconfig memory: tegra: Add EMC scaling support code for Tegra210 2020-06-22 13:54:57 +02:00
Makefile memory: tegra: Add EMC scaling support code for Tegra210 2020-06-22 13:54:57 +02:00
mc.c memory: tegra: Consolidate registers definition into common header 2019-11-11 14:55:27 +01:00
mc.h memory: tegra: Add EMC scaling support code for Tegra210 2020-06-22 13:54:57 +02:00
tegra20-emc.c memory: tegra: Make debugfs permissions human-readable 2020-06-22 13:54:56 +02:00
tegra20.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
tegra30-emc.c memory: tegra: Make debugfs permissions human-readable 2020-06-22 13:54:56 +02:00
tegra30.c memory: tegra: Consolidate registers definition into common header 2019-11-11 14:55:27 +01:00
tegra114.c memory: tegra: Add gr2d and gr3d to DRM IOMMU group 2019-11-11 14:55:25 +01:00
tegra124-emc.c memory: tegra: Make debugfs permissions human-readable 2020-06-22 13:54:56 +02:00
tegra124.c memory: tegra: Consolidate registers definition into common header 2019-11-11 14:55:27 +01:00
tegra186-emc.c memory: tegra: Add support for the Tegra194 memory controller 2020-01-09 19:38:38 +01:00
tegra186.c memory: tegra: Add support for the Tegra194 memory controller 2020-01-09 19:38:38 +01:00
tegra210-emc-core.c memory: tegra: Add EMC scaling support code for Tegra210 2020-06-22 13:54:57 +02:00
tegra210-emc-table.c memory: tegra: Add EMC scaling support code for Tegra210 2020-06-22 13:54:57 +02:00
tegra210-emc.h memory: tegra: Add EMC scaling support code for Tegra210 2020-06-22 13:54:57 +02:00
tegra210-mc.h memory: tegra: Add EMC scaling support code for Tegra210 2020-06-22 13:54:57 +02:00
tegra210.c memory: tegra: Correct reset value of xusb_hostr 2020-01-10 15:34:06 +01:00