soc/tegra: pmc: Configure deep sleep control settings
authorSowjanya Komatineni <skomatineni@nvidia.com>
Fri, 16 Aug 2019 19:42:05 +0000 (12:42 -0700)
committerThierry Reding <treding@nvidia.com>
Tue, 29 Oct 2019 12:30:16 +0000 (13:30 +0100)
commitc7ccfccabb0f819eae1a191ccd94269f577e4523
treeca090522e910aa1d1b1c5337a54c6c2b65b01bf0
parent455271d9dc5f4cce3d35c5819f8f01c723bca94c
soc/tegra: pmc: Configure deep sleep control settings

Tegra210 and prior Tegra chips have deep sleep entry and wakeup related
timings which are platform specific that should be configured before
entering into deep sleep.

Below are the timing specific configurations for deep sleep entry and
wakeup.
- Core rail power-on stabilization timer
- OSC clock stabilization timer after SOC rail power is stabilized.
- Core power off time is the minimum wake delay to keep the system
  in deep sleep state irrespective of any quick wake event.

These values depends on the discharge time of regulators and turn OFF
time of the PMIC to allow the complete system to finish entering into
deep sleep state.

These values vary based on the platform design and are specified
through the device tree.

This patch has implementation to configure these timings which are must
to have for proper deep sleep and wakeup operations.

Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c