9e469d7887
Add debug node to control power collapse on/off and timeout value. Remove unused traces that caused linker error due to this change. Change-Id: I7860cda4e2febee85a54884f9e26ae7a512afbb2 Signed-off-by: George Shen <sqiao@codeaurora.org>
26 lines
553 B
C
26 lines
553 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#include "msm_cvp_common.h"
|
|
#include "cvp_hfi_api.h"
|
|
#include "msm_cvp_debug.h"
|
|
#include "msm_cvp_clocks.h"
|
|
|
|
int msm_cvp_set_clocks(struct msm_cvp_core *core)
|
|
{
|
|
struct cvp_hfi_device *hdev;
|
|
int rc;
|
|
|
|
if (!core || !core->device) {
|
|
dprintk(CVP_ERR, "%s Invalid args: %pK\n", __func__, core);
|
|
return -EINVAL;
|
|
}
|
|
|
|
hdev = core->device;
|
|
rc = call_hfi_op(hdev, scale_clocks,
|
|
hdev->hfi_device_data, core->curr_freq);
|
|
return rc;
|
|
}
|