Skip to content
  • Sudeep Holla's avatar
    firmware: arm_scpi: add support to populate OPPs and get transition latency · 45ca7df7
    Sudeep Holla authored
    
    
    Currently only CPU devices use the transition latency and the OPPs
    populated in the SCPI driver. scpi-cpufreq has logic to handle these.
    However, even GPU and other users of SCPI DVFS will need the same logic.
    
    In order to avoid duplication, this patch adds support to get DVFS
    transition latency and add all the OPPs to the device using OPP library
    helper functions. The helper functions added here can be used for any
    device whose DVFS are managed by SCPI.
    
    Also, we also have incorrect dependency on the cluster identifier for
    the CPUs. It's fundamentally wrong as the domain id need not match the
    cluster id. This patch gets rid of that dependency by making use of the
    clock bindings which are already in place.
    
    Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
    45ca7df7