2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 13:43:55 +08:00
linux-next/drivers/soc/tegra
Jon Hunter 0a2d87e047 soc/tegra: pmc: Wait for powergate state to change
Currently, the function tegra_powergate_set() simply sets the desired
powergate state but does not wait for the state to change. In most cases
we should wait for the state to change before proceeding. Currently,
there is a case for Tegra114 and Tegra124 devices where we do not wait
when starting the secondary CPU as this is not necessary. However, this
is only done at boot time and so waiting here will only have a small
impact on boot time. Therefore, update tegra_powergate_set() to wait
when setting the powergate.

By adding this feature, we can also eliminate the polling loop from
tegra30_boot_secondary().

A function has been added for checking the status of the powergate and
so update the tegra_powergate_is_powered() to use this macro as well.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2016-04-05 15:22:53 +02:00
..
fuse soc/tegra: fuse: Add spare bit offset for Tegra210 2015-07-16 10:38:31 +02:00
common.c soc/tegra: Add Tegra210 support 2015-07-16 09:47:59 +02:00
Kconfig ARM: tegra: select USB_ULPI from EHCI rather than platform 2015-11-24 16:47:26 +01:00
Makefile soc: tegra: Remove redundant $(CONFIG_ARCH_TEGRA) in Makefile 2015-08-13 16:17:40 +02:00
pmc.c soc/tegra: pmc: Wait for powergate state to change 2016-04-05 15:22:53 +02:00