• Tero Kristo's avatar
    soc: ti: ti_sci_pm_domains: switch to use multiple genpds instead of one · efa5c01c
    Tero Kristo authored
    Current implementation of the genpd support over TI SCI uses a single
    genpd across the whole SoC, and attaches multiple devices to this. This
    solution has its drawbacks, like it is currently impossible to attach
    more than one power domain to a device; the core genpd implementation
    requires one genpd per power-domain entry in DT for a single device.
    Also, some devices like USB apparently require their own genpd during
    probe time, the current shared approach in use does not work at all.
    
    Switch the implementation over to use a single genpd per power domain
    entry in DT. The domains are registered with the onecell approach, but
    we also add our own xlate service due to recent introduction of the
    extended flag for TI SCI PM domains; genpd core xlate service requires
    a single cell per powerdomain, but we are using two cells.
    Signed-off-by: default avatarTero Kristo <t-kristo@ti.com>
    Signed-off-by: default avatarSantosh Shilimkar <santosh.shilimkar@oracle.com>
    efa5c01c
ti_sci_pm_domains.c 5.46 KB