• Jon Hunter's avatar
    soc/tegra: pmc: Initialise power partitions early · e2d17960
    Jon Hunter authored
    If CONFIG_PM_GENERIC_DOMAINS is not enabled, then power partitions
    associated with a device will not be enabled automatically by the PM
    core when the device is in use. To avoid situations where a device in
    a power partition is to be used but the partition is not enabled,
    initialise the power partitions for Tegra early in the boot process and
    if CONFIG_PM_GENERIC_DOMAINS is not enabled, then power on all
    partitions defined in the device-tree blob.
    
    Note that if CONFIG_PM_GENERIC_DOMAINS is not enabled, after the
    partitions are turned on, the clocks and resets used as part of the
    sequence for turning on the partition are released again as they are no
    longer needed by the PMC driver. Another benefit of this is that this
    avoids any issues of sharing resets between the PMC driver and other
    device drivers that may wish to independently control a particular
    reset.
    Signed-off-by: default avatarJon Hunter <jonathanh@nvidia.com>
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    e2d17960
pmc.c 36.8 KB