• Thara Gopinath's avatar
    thermal/drivers/qcom: Add support for LMh driver · 53bca371
    Thara Gopinath authored
    Driver enabling various pieces of Limits Management Hardware(LMh) for cpu
    cluster0 and cpu cluster1 namely kick starting monitoring of temperature,
    current, battery current violations, enabling reliability algorithm and
    setting up various temperature limits.
    
    The following has been explained in the cover letter. I am including this
    here so that this remains in the commit message as well.
    
    LMh is a hardware infrastructure on some Qualcomm SoCs that can enforce
    temperature and current limits as programmed by software for certain IPs
    like CPU. On many newer LMh is configured by firmware/TZ and no programming
    is needed from the kernel side. But on certain SoCs like sdm845 the
    firmware does not do a complete programming of the h/w. On such soc's
    kernel software has to explicitly set up the temperature limits and turn on
    various monitoring and enforcing algorithms on the hardware.
    
    Tested-by: Steev Klimaszewski <steev@kali.org> # Lenovo Yoga C630
    Signed-off-by: default avatarThara Gopinath <thara.gopinath@linaro.org>
    Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
    Link: https://lore.kernel.org/r/20210809191605.3742979-3-thara.gopinath@linaro.org
    53bca371
Kconfig 1.81 KB