• Varun Wadekar's avatar
    Tegra186: read activity monitor's clock counter values · 691bc22d
    Varun Wadekar authored
    
    
    This patch adds a new SMC function ID to read the refclk and coreclk
    clock counter values from the Activity Monitor. The non-secure world
    requires this information to calculate the CPU's frequency.
    
    Formula: "freq = (delta_coreclk / delta_refclk) * refclk_freq"
    
    The following CPU registers have to be set by the non-secure driver
    before issuing the SMC:
    
    X1 = MPIDR of the target core
    X2 = MIDR of the target core
    
    Change-Id: I296d835def1f5788c17640c0c456b8f8f0e90824
    Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
    691bc22d
plat_sip_calls.c 6.47 KB