28 May, 2015

1 commit

  • HDCP driver needs to check if secure environment supports HDCP. If it's
    supported, then it requires to program some registers through SCM.
    Add qcom_scm_hdcp_available and qcom_scm_hdcp_req to support these
    requirements.

    Signed-off-by: Jilai Wang
    Signed-off-by: Kumar Gala

    jilai wang
     

29 Apr, 2015

1 commit


12 Mar, 2015

4 commits

  • Support powering down the calling cpu, by trapping into SCM. This
    termination function triggers the ARM cpu to execute WFI instruction,
    causing the power controller to safely power the cpu down.

    Caches may be flushed before powering down the cpu. If cache controller
    is set to turn off when the cpu is powered down, then the flags argument
    indicates to the secure mode to flush its cache lines before executing
    WFI.The warm boot reset address for the cpu should be set before the
    calling into this function for the cpu to resume.

    The original code for the qcom_scm_call_atomic1() comes from a patch by
    Stephen Boyd [1]. The function scm_call_atomic1() has been cherry picked
    and renamed to match the convention used in this file. Since there are
    no users of scm_call_atomic2(), the function is not included.

    [1]. https://lkml.org/lkml/2014/8/4/765

    Signed-off-by: Stephen Boyd
    Signed-off-by: Lina Iyer
    Signed-off-by: Kumar Gala

    Lina Iyer
     
  • A core can be powered down for cpuidle or when it is hotplugged off. In
    either case, the warmboot return address would be different. Allow
    setting the warmboot address for a specific cpu, optimize and write to
    the firmware, if the address is different than the previously set
    address.

    Export qcom_scm_set_warm_boot_addr function move the warm boot flags to
    implementation.

    Signed-off-by: Lina Iyer
    Signed-off-by: Kumar Gala

    Lina Iyer
     
  • We dont need to export the SCM specific cold boot flags to the platform
    code. Export only a function to set the cold boot address.

    Signed-off-by: Lina Iyer
    Signed-off-by: Kumar Gala

    Lina Iyer
     
  • Architectural changes in the ARM Linux kernel tree mandate the eventual
    removal of the mach-* directories. Move the scm driver to
    drivers/firmware and the scm header to include/linux to support that
    removal.

    Signed-off-by: Kumar Gala

    Kumar Gala