From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E111A3033DE for ; Mon, 15 Jun 2026 18:17:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781547454; cv=none; b=heVyJwteQGwBLgQRHQrliQmNGkRXYFrwacneSWRiUZ/X81NfG7b+7S0E4wgFYb94/4NGQUv4qDrPo7YakQXruNwpjmbM44nH8Prpi1xFO+wi8YE+7ScvQHoLRRibwLxWLN0ZJxg4DOqVz6iTPui36JtUvfBnQPBn1LqWRAbKERA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781547454; c=relaxed/simple; bh=4gFtFz0EOueGIbUMmeHTu901hu+kMEFoP97QlGJgZJA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PjWDli9svn2CZNptRnHYyzb5XVQExlIVZvezB7oshhARteIkviWvHakDYMi3OJgck6cRX3Wtz9XxvoJHtSpOfps4uGIEMXIEnsRsgz+AAE3NwFYwXmOj4FFV9GjNZR95/Or4DrVwbiVKGL1KVrgkzFhmHvawz1hKPAx6u+cK51Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=hFMk3YMX; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=NQE/O5gB; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="hFMk3YMX"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="NQE/O5gB" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65FFhN1I347105 for ; Mon, 15 Jun 2026 18:17:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= OH8fV1fnnD45EYGZBySHW6akA5W6qljs74ZB6bTyxzE=; b=hFMk3YMXsmTuKqXE YCjg+K1BhOPI38ixpfG99NRRWRAlxLJ8aAslg+sSVicCk1lIR8jBYAZDdxZyOrCo 9AyJxARvY3TAo6j+y2ieG3WPPRD4vzIt4ptcIlkUxN+Q2Z9eYNcpKASsiOdXi+XY UZ13+0+y7RlKjKC7BAwa5woWBcHh68A4hGi1rTSm2cvcjHi6qYS0lF4IUraws8tp 7FSNN5V5YDszkJYwcw5ytW91XPCVI8KmFiz3rsa3IJjG+2CqHhKAQJUE6WG0K43q UZyq+OZ5i759+NmIhNrvWaPlCxi4dVPnmJs4utlK9HcpvMXkzn+XHYgOUyXGT78H qBPMrQ== Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4etetjta53-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 15 Jun 2026 18:17:31 +0000 (GMT) Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-2c0c32faa62so56182535ad.2 for ; Mon, 15 Jun 2026 11:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781547451; x=1782152251; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=OH8fV1fnnD45EYGZBySHW6akA5W6qljs74ZB6bTyxzE=; b=NQE/O5gBjNHHL8KSAN6Pls0d+JS6SId5ouv0vYQjOArA8SL3nljz1a0vxpkv+mtSEu UgNb5aw2hO6EpUfIISdHIYY9Gm97x3pZuhKpdPTENTZFdZjARQjurFXIvLJy4rlTqp1e zgvZfk/9ORSvqRLcg3FcDNt6fHkh03rFLjPoaeOyKFHKurfbF1O97UejnI3sfhzUQXlA P5cO9VPnZh7uw5g5EjML4xdNNuhFn2jkcJn7QcFxRIdseizMRrCiWWJP70y+Z/B1Cst6 Rq2Aq7wJrXFXIox01AkR5ycMlaCYxvW1anApys9wjGZDH93DnHHPtSdWekQnQPqvLSnG 01/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781547451; x=1782152251; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OH8fV1fnnD45EYGZBySHW6akA5W6qljs74ZB6bTyxzE=; b=N8XQ1WhWhteuKWC34vLe0YjR0yP1UgQdYaRk5hnmxvRDg2453RF/6CcLrkd/0piio3 Lclk8bVH/2UJy1rQvTIL9hQa0JGSjpF8lKO52ov/dc+tk5dyMqYnuzGD9ORXGVvbtTxL ppSWxJ6lj4NDkz1hXjIp2F9O4oUZtxTvjJ/qO6RtNlhl0/Tpu8XM4kagfBw5RPN3j47P 9nVlbH6ESS9fE3aAUZ7UMVkaUTIqvmnhbiroWGn7RGPyB6/gq0OJ8H1StK0ExlwAAR80 YcgOz+Ohl2xZtyKWMi1Ngzdb7KomIT2d++Ky0Rs6d8NOCACvdMP5kXGVB4LSsUK6AKbT QHdA== X-Forwarded-Encrypted: i=1; AFNElJ9KjnCbsWbE7hHpVXlp0aZdLxvpfCBvLJu0KQpF+SOZHoAgdsHsPudVvjULEkYW1XrsPm48lXpREM3rR9k=@vger.kernel.org X-Gm-Message-State: AOJu0YwGKUvIetrFNv0V6u9ioniGmLELL8xqQjqpBcvqBPVcZGxW2+gP pzKIeSy5fTxiyus4Vn/JrmYROE6sV0riFzPPAPCBe48oIb3L6iCtkShpjf+NXK0N04x8/QoTJ3R Y2djzQ4ZxxvizrugcLyD/FGBx5IY2t4E+yJQy5KnYv08ht65qzGz/ezhP+Pr0FbtgD8I= X-Gm-Gg: Acq92OFwk8wdJvq8msVwQjQVU9GFV4dHNIIgysjPSb3dBLtuyq5xIg9hzqW/n2Q188K hn0wGLCGHJlJ2AtZW0S/vNIZvAE3RJGpvinyoYv8Q33aQ466NS/fiss3N0sbSsUSRgds3jdq/9V osjHfAXP3bM259bkCkh3yiCXvbOkqrBswnk0IhBjjWhOsFNj61e2zzChKMs+XnCXUZSItl+Ie7u dUszuHhxoL6TDQ6tUBKjfOSvz31BRRTAex1h8Ee9DZTtJMjnbhpHgoYuBDRlDC7lp5Q71feofou 4I2DZmtGYa3BPqptq6YoObKZxDwjhgvFRBcwxdb76C3WQ0dTbz9cMR8i7qOYmMXQVzYRNNA6l8z 6pFrKT3fu1hJTQIdCdIVn9vQCm7LA98uj/5vL5X/PkdRI1OMW2VaZVMtY X-Received: by 2002:a17:903:166e:b0:2c1:5135:39f3 with SMTP id d9443c01a7336-2c4109ed1a9mr170327465ad.11.1781547451274; Mon, 15 Jun 2026 11:17:31 -0700 (PDT) X-Received: by 2002:a17:903:166e:b0:2c1:5135:39f3 with SMTP id d9443c01a7336-2c4109ed1a9mr170327195ad.11.1781547450796; Mon, 15 Jun 2026 11:17:30 -0700 (PDT) Received: from [10.187.126.18] ([106.221.183.253]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c42f2e535csm103483515ad.6.2026.06.15.11.17.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Jun 2026 11:17:30 -0700 (PDT) Message-ID: <6cac2ef4-558e-7fc6-3631-a51b98011152@oss.qualcomm.com> Date: Mon, 15 Jun 2026 23:47:20 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v4 09/16] media: iris: Add framework support for AR50_LITE video core Content-Language: en-US To: Dmitry Baryshkov , Vikash Garodia , Abhinav Kumar , Bryan O'Donoghue , Mauro Carvalho Chehab , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Dikshita Agarwal References: <20260612-iris-ar50lt-v4-0-0abfb74d5b3c@oss.qualcomm.com> <20260612-iris-ar50lt-v4-9-0abfb74d5b3c@oss.qualcomm.com> From: Vishnu Reddy In-Reply-To: <20260612-iris-ar50lt-v4-9-0abfb74d5b3c@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjE1MDE5MyBTYWx0ZWRfX4h+PStICjXXr OKwBp1tG56eCOFIqB+v1MjWKyjjl+LBu6CtEiGNNiCWZwiNZl9XVLZbZ+TfTpBmLBNESq7KBx/y A4SZ5OEk9bxbTnIqR3pmwI7RvABlHaBARpLZHHzoZEs1O6hf7tpLF3NyY+4GHfVctqbySXpUH6t JFxFfzpgvZltewphdpDir3kjkR+p52TeVVndNbeISsu+or9d9ezrqzHm3hze6JjSLs28mWCiPUS 2YtRLnEsxM9osR1DV6uKfoz5NFnHgszuu/fH303sSkePjh1P5CxFqGZrWjeN2KPzH1IxCIgJY6M m11sqJnsQJiU3tP/1QxtddrGd9ei24/ECpBOa02W8+3TsgrMtUKNblS7oiEVn5R+yayWyZLOmir 7TKS4skc+ZWGSV2WADRa2ZhFeMRKSNxb2tBa3nAYdMaKKRn0PovcXUMe/yYyyx7oF2Z7I/lb/AW /o0Yvvb2+wCOZTI8PVA== X-Proofpoint-ORIG-GUID: hyE8e3khlFlcgXQRLVHm_wjD4kNZnUDZ X-Proofpoint-Spam-Info: AW1haW4tMjYwNjE1MDE5MyBTYWx0ZWRfX43nlDDa0y+aQ ttiVkRLaqiHcZy5qexqeUcKhexpQmWTvT9tOoVLT59crjd/eTkTIdpnrShRgSb405oIb3YiNiW8 RST5z/PyFRmZFd0rUIjAPCFeY98DXag= X-Authority-Analysis: v=2.4 cv=HttG3UTS c=1 sm=1 tr=0 ts=6a3041bc cx=c_pps a=cmESyDAEBpBGqyK7t0alAg==:117 a=ym48ABLkKUHSTpi9L/JoRg==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=USSJgBeZPGwVCPz7ayEA:9 a=QEXdDO2ut3YA:10 a=1OuFwYUASf3TG4hYMiVC:22 X-Proofpoint-GUID: hyE8e3khlFlcgXQRLVHm_wjD4kNZnUDZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-15_04,2026-06-15_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 suspectscore=0 clxscore=1015 impostorscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606040000 definitions=main-2606150193 On 6/12/2026 2:55 PM, Dmitry Baryshkov wrote: > From: Dikshita Agarwal > > Add power sequence for ar5lt core. > Add register handling for ar50lt by hooking up vpu op with ar50lt > specific implemtation or resue from earlier generation wherever > feasible. > > Signed-off-by: Dikshita Agarwal > Signed-off-by: Dmitry Baryshkov > --- > drivers/media/platform/qcom/iris/Makefile | 1 + > .../platform/qcom/iris/iris_platform_common.h | 2 + > drivers/media/platform/qcom/iris/iris_vpu_ar50lt.c | 156 +++++++++++++++++++++ > drivers/media/platform/qcom/iris/iris_vpu_common.c | 3 +- > drivers/media/platform/qcom/iris/iris_vpu_common.h | 1 + > 5 files changed, 162 insertions(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/iris/Makefile b/drivers/media/platform/qcom/iris/Makefile > index 48e415cbc439..f1b204b95694 100644 > --- a/drivers/media/platform/qcom/iris/Makefile > +++ b/drivers/media/platform/qcom/iris/Makefile > @@ -26,6 +26,7 @@ qcom-iris-objs += iris_buffer.o \ > iris_vpu2.o \ > iris_vpu3x.o \ > iris_vpu4x.o \ > + iris_vpu_ar50lt.o \ > iris_vpu_buffer.o \ > iris_vpu_common.o \ > > diff --git a/drivers/media/platform/qcom/iris/iris_platform_common.h b/drivers/media/platform/qcom/iris/iris_platform_common.h > index accc1627defd..6a189489369f 100644 > --- a/drivers/media/platform/qcom/iris/iris_platform_common.h > +++ b/drivers/media/platform/qcom/iris/iris_platform_common.h > @@ -74,6 +74,7 @@ enum platform_clk_type { > IRIS_VPP0_HW_CLK, > IRIS_VPP1_HW_CLK, > IRIS_APV_HW_CLK, > + IRIS_THROTTLE_CLK, > }; > > struct platform_clk_data { > @@ -315,6 +316,7 @@ struct iris_platform_data { > u32 tz_cp_config_data_size; > u32 num_vpp_pipe; > bool no_aon; > + bool no_rpmh; > u32 wd_intr_mask; > u32 icc_ib_multiplier; > u32 max_session_count; > diff --git a/drivers/media/platform/qcom/iris/iris_vpu_ar50lt.c b/drivers/media/platform/qcom/iris/iris_vpu_ar50lt.c > new file mode 100644 > index 000000000000..1af20b067c03 > --- /dev/null > +++ b/drivers/media/platform/qcom/iris/iris_vpu_ar50lt.c > @@ -0,0 +1,156 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright (c) 2026 Qualcomm Innovation Center, Inc. All rights reserved. > + */ > + > +#include > +#include > +#include > + > +#include "iris_instance.h" > +#include "iris_vpu_common.h" > + > +#include "iris_vpu_register_defines.h" > + > +#define WRAPPER_INTR_MASK_A2HVCODEC_BMSK_AR50LT BIT(3) > + > +#define WRAPPER_VCODEC0_CLOCK_CONFIG_AR50LT 0xb0080 > + > +#define CPU_CS_VCICMD 0xa0020 > +#define CPU_CS_VCICMD_ARP_OFF 0x1 > + > +static void iris_vpu_ar50lt_set_preset_registers(struct iris_core *core) > +{ > + writel(0x0, core->reg_base + WRAPPER_VCODEC0_CLOCK_CONFIG_AR50LT); > +} > + > +static void iris_vpu_ar50lt_interrupt_init(struct iris_core *core) > +{ > + writel(WRAPPER_INTR_MASK_A2HVCODEC_BMSK_AR50LT, core->reg_base + WRAPPER_INTR_MASK); > +} > + > +static void iris_vpu_ar50lt_disable_arp(struct iris_core *core) > +{ > + writel(CPU_CS_VCICMD_ARP_OFF, core->reg_base + CPU_CS_VCICMD); > +} > + > +static int iris_vpu_ar50lt_power_off_controller(struct iris_core *core) > +{ > + iris_disable_unprepare_clock(core, IRIS_AHB_CLK); > + iris_disable_unprepare_clock(core, IRIS_AXI_CLK); > + iris_disable_unprepare_clock(core, IRIS_CTRL_CLK); > + iris_disable_power_domains(core, core->pmdomain_tbl->pd_devs[IRIS_CTRL_POWER_DOMAIN]); > + > + return 0; > +} > + > +static void iris_vpu_ar50lt_power_off_hw(struct iris_core *core) > +{ > + dev_pm_genpd_set_hwmode(core->pmdomain_tbl->pd_devs[IRIS_HW_POWER_DOMAIN], false); > + iris_disable_unprepare_clock(core, IRIS_THROTTLE_CLK); > + iris_disable_unprepare_clock(core, IRIS_HW_AHB_CLK); > + iris_disable_unprepare_clock(core, IRIS_HW_CLK); > + iris_disable_power_domains(core, core->pmdomain_tbl->pd_devs[IRIS_HW_POWER_DOMAIN]); > +} > + > +static int iris_vpu_ar50lt_power_on_controller(struct iris_core *core) > +{ > + int ret; > + > + ret = iris_enable_power_domains(core, core->pmdomain_tbl->pd_devs[IRIS_CTRL_POWER_DOMAIN]); > + if (ret) > + return ret; > + > + ret = iris_prepare_enable_clock(core, IRIS_CTRL_CLK); > + if (ret) > + goto err_disable_power; > + > + ret = iris_prepare_enable_clock(core, IRIS_AXI_CLK); > + if (ret && ret != -ENOENT) > + goto err_disable_ctrl_clock; > + > + ret = iris_prepare_enable_clock(core, IRIS_AHB_CLK); > + if (ret) > + goto err_disable_axi_clock; > + > + return 0; > + > +err_disable_axi_clock: > + iris_disable_unprepare_clock(core, IRIS_AXI_CLK); > +err_disable_ctrl_clock: > + iris_disable_unprepare_clock(core, IRIS_CTRL_CLK); > +err_disable_power: > + iris_disable_power_domains(core, core->pmdomain_tbl->pd_devs[IRIS_CTRL_POWER_DOMAIN]); > + > + return ret; > +} > + > +static int iris_vpu_ar50lt_power_on_hw(struct iris_core *core) > +{ > + int ret; > + > + ret = iris_enable_power_domains(core, core->pmdomain_tbl->pd_devs[IRIS_HW_POWER_DOMAIN]); > + if (ret) > + return ret; > + > + ret = iris_prepare_enable_clock(core, IRIS_HW_CLK); > + if (ret) > + goto err_disable_power; > + > + ret = iris_prepare_enable_clock(core, IRIS_HW_AHB_CLK); > + if (ret) > + goto err_disable_hw_clock; > + > + ret = iris_prepare_enable_clock(core, IRIS_THROTTLE_CLK); > + if (ret) > + goto err_disable_hw_ahb_clock; > + > + return 0; > + > +err_disable_hw_ahb_clock: > + iris_disable_unprepare_clock(core, IRIS_HW_AHB_CLK); > +err_disable_hw_clock: > + iris_disable_unprepare_clock(core, IRIS_HW_CLK); > +err_disable_power: > + iris_disable_power_domains(core, core->pmdomain_tbl->pd_devs[IRIS_HW_POWER_DOMAIN]); > + > + return ret; > +} > + > +static u64 iris_vpu_ar50lt_calc_freq(struct iris_inst *inst, size_t data_size) > +{ > + struct platform_inst_caps *caps = inst->core->iris_platform_data->inst_caps; > + struct v4l2_format *inp_f = inst->fmt_src; > + u32 mbs_per_second, mbpf, height, width; > + unsigned long vpp_freq, vsp_freq; > + u32 fps = DEFAULT_FPS; fps = inst->frame_rate; > + > + width = max(inp_f->fmt.pix_mp.width, inst->crop.width); > + height = max(inp_f->fmt.pix_mp.height, inst->crop.height); > + > + mbpf = NUM_MBS_PER_FRAME(height, width); > + mbs_per_second = mbpf * fps; > + > + vpp_freq = mbs_per_second * caps->mb_cycles_vpp; > + > + /* 21 / 20 is overhead factor */ > + vpp_freq += vpp_freq / 20; > + vsp_freq = mbs_per_second * caps->mb_cycles_vsp; > + > + /* 10 / 7 is overhead factor */ > + vsp_freq += ((fps * data_size * 8) * 10) / 7; > + > + return max(vpp_freq, vsp_freq); > +} > + > +const struct vpu_ops iris_vpu_ar50lt_ops = { > + .power_off_hw = iris_vpu_ar50lt_power_off_hw, > + .power_on_hw = iris_vpu_ar50lt_power_on_hw, > + .power_off_controller = iris_vpu_ar50lt_power_off_controller, > + .power_on_controller = iris_vpu_ar50lt_power_on_controller, > + .calc_freq = iris_vpu_ar50lt_calc_freq, > + .set_hwmode = iris_vpu_set_hwmode, > + .set_preset_registers = iris_vpu_ar50lt_set_preset_registers, > + .interrupt_init = iris_vpu_ar50lt_interrupt_init, > + .disable_arp = iris_vpu_ar50lt_disable_arp, > +}; > diff --git a/drivers/media/platform/qcom/iris/iris_vpu_common.c b/drivers/media/platform/qcom/iris/iris_vpu_common.c > index 41498f94480e..75dc051cc6cb 100644 > --- a/drivers/media/platform/qcom/iris/iris_vpu_common.c > +++ b/drivers/media/platform/qcom/iris/iris_vpu_common.c > @@ -97,7 +97,8 @@ int iris_vpu_boot_firmware(struct iris_core *core) > } > > writel(HOST2XTENSA_INTR_ENABLE, core->reg_base + CPU_CS_H2XSOFTINTEN); > - writel(0x0, core->reg_base + CPU_CS_X2RPMH); > + if (!core->iris_platform_data->no_rpmh) > + writel(0x0, core->reg_base + CPU_CS_X2RPMH); > > return 0; > } > diff --git a/drivers/media/platform/qcom/iris/iris_vpu_common.h b/drivers/media/platform/qcom/iris/iris_vpu_common.h > index 71d96921ed37..f00e2de5fa53 100644 > --- a/drivers/media/platform/qcom/iris/iris_vpu_common.h > +++ b/drivers/media/platform/qcom/iris/iris_vpu_common.h > @@ -13,6 +13,7 @@ extern const struct vpu_ops iris_vpu3_ops; > extern const struct vpu_ops iris_vpu33_ops; > extern const struct vpu_ops iris_vpu35_ops; > extern const struct vpu_ops iris_vpu4x_ops; > +extern const struct vpu_ops iris_vpu_ar50lt_ops; > > struct vpu_ops { > void (*power_off_hw)(struct iris_core *core); >