iinterconnect: qcom: Hold high bandwidth vote for keepalive BCMs

Add a high bandwidth vote for critical NoCs during boot up.

Change-Id: I739df67083e13f542c0021054b1ca4c1f2d9bd09
Signed-off-by: David Dai <daidavid1@codeaurora.org>
This commit is contained in:
David Dai 2020-01-06 16:46:17 -08:00
commit 8279d7e0ae

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
*
*/
#include <linux/interconnect-provider.h>
@ -81,12 +81,11 @@ static void bcm_aggregate(struct qcom_icc_bcm *bcm)
bcm->vote_y[bucket] = temp;
}
if (bcm->keepalive && bcm->vote_x[QCOM_ICC_BUCKET_AMC] == 0 &&
bcm->vote_y[QCOM_ICC_BUCKET_AMC] == 0) {
bcm->vote_x[QCOM_ICC_BUCKET_AMC] = 1;
bcm->vote_x[QCOM_ICC_BUCKET_WAKE] = 1;
bcm->vote_y[QCOM_ICC_BUCKET_AMC] = 1;
bcm->vote_y[QCOM_ICC_BUCKET_WAKE] = 1;
if (bcm->keepalive) {
bcm->vote_x[QCOM_ICC_BUCKET_AMC] = 16000;
bcm->vote_x[QCOM_ICC_BUCKET_WAKE] = 16000;
bcm->vote_y[QCOM_ICC_BUCKET_AMC] = 16000;
bcm->vote_y[QCOM_ICC_BUCKET_WAKE] = 16000;
}
}