ARM: tegra: Modify reshift divider during LP1
authorStephen Warren <swarren@nvidia.com>
Thu, 3 Oct 2019 20:50:32 +0000 (14:50 -0600)
committerThierry Reding <treding@nvidia.com>
Wed, 8 Jan 2020 11:57:53 +0000 (12:57 +0100)
commitcf94a7a06a7d7d4402d7313cf622ca2823bad43c
tree3efc1fe00a8ffc9afc22d007de3212ac25b4b046
parent1a3388d506bf5b45bb283e6a4c4706cfb4897333
ARM: tegra: Modify reshift divider during LP1

The reshift hardware module implements the RAM re-repair process. This
module uses PLLP as an input clock during LP1 resume. The input divider
for this clock is typically set for PLLP's normal rate. During LP1
resume, PLLP is bypassed and so runs at the crystal rate, which is much
slower. Consequently, decrease the divider so that the reshift module
runs at a reasonable rate during LP1 resume.

NVIDIA's downstream kernel code only does this if not compiled for
Tegra30, so the added code is made conditional upon the chip ID.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/mach-tegra/sleep-tegra30.S