ARM: dts: msm: configure pc disable latency for 8976

Configure PC disable latency value for 8976 target when  pm_qos
request to disable power collapse for DDR during SSR and coldboot.

CRs-Fixed: 914674
Change-Id: I65a2ca8b4a94a337195e8c4e8e4743e38f57197e
Signed-off-by: Anand N Sunkad <asunka@codeaurora.org>
This commit is contained in:
Anand N Sunkad 2015-11-02 19:06:58 +05:30 committed by Gerrit - the friendly Code Review server
parent a330f3d5bc
commit b7c2015390
4 changed files with 12 additions and 1 deletions

View File

@ -59,6 +59,8 @@ support for pronto hardware.
will be turned on/off when WLAN is enabled/disabled respectively.
- qcom,has-vsys-adc-channel: boolean flag to determine which ADC HW channel need
to use for VBATT feature.
- qcom,pc-disable-latency: is a configurable value to configure
pc disable latency value.
Example:

View File

@ -1761,6 +1761,7 @@
clock-names = "xo", "rf_clk", "measure", "wcnss_debug";
qcom,pc-disable-latency = <80>;
qcom,has-autodetect-xo;
qcom,is-pronto-v3;
qcom,has-pronto-hw;

View File

@ -1219,7 +1219,8 @@ void wcnss_disable_pc_add_req(void)
if (!penv->pc_disabled) {
wcnss_pm_qos_add_request();
wcnss_prevent_suspend();
wcnss_pm_qos_update_request(WCNSS_DISABLE_PC_LATENCY);
wcnss_pm_qos_update_request(penv->wlan_config.
pc_disable_latency);
penv->pc_disabled = 1;
}
mutex_unlock(&penv->pm_qos_mutex);
@ -2810,6 +2811,12 @@ wcnss_trigger_config(struct platform_device *pdev)
goto fail;
}
if (of_property_read_u32(pdev->dev.of_node,
"qcom,pc-disable-latency",
&penv->wlan_config.pc_disable_latency)) {
penv->wlan_config.pc_disable_latency = WCNSS_DISABLE_PC_LATENCY;
}
/* make sure we are only triggered once */
if (penv->triggered)
return 0;

View File

@ -43,6 +43,7 @@ struct wcnss_wlan_config {
void __iomem *msm_wcnss_base;
int iris_id;
int vbatt;
int pc_disable_latency;
struct vregs_level pronto_vlevel[PRONTO_REGULATORS];
struct vregs_level iris_vlevel[IRIS_REGULATORS];
};