Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3584189rwb; Tue, 16 Aug 2022 05:46:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR7VCO91v20z33Jj4w5VHqvlp0LZBOIhvWBl8dsgjkII938QlgQYAmbfuXYl2tnwyr37GiNa X-Received: by 2002:a05:6402:3687:b0:43c:e5d3:d50d with SMTP id ej7-20020a056402368700b0043ce5d3d50dmr19083111edb.174.1660653969209; Tue, 16 Aug 2022 05:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660653969; cv=none; d=google.com; s=arc-20160816; b=n/EUylOJ2EqkP3AG3l7jUESIO+1kaW60lEkeiKkeO0BnLRud5sYITBS2HX6pCzRebh 0WpnFya9FyZ/5yrrOxLGcsefgn0I4X8x72tsUN+VZUalE4WhLXsWfnfH6c0rnS+KbcTC CJcvgVYYLROjcP936ykARL3iqU1zIOPmydGKwbvQrKFV/8yNim4A6x7ZzDx+dbHoNAoC rGVvGmqdgT+mCH3F2YC+MgBHC7aLUAi/SSP3Q1CneyaajjcfJd7GwcmJh28zMsOZm4g9 HTV7Z/hO4EZU5pNMETiar/Tj4YQFiWrKjNRvZeK9WljLGkqOYJvaKwo/iBnY8afk+aaL yX/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=XD8p0yeIP6FHp1zRXk2g6v1Fja3jOBHVk/L7ZMjGmI8=; b=qRuIfCuTbA4FiGZGToFkvWdZnLbAWOdjp6QYaTYzAMCbbhoEyv1B7+HCj+krWj0kzF GiVQU5c07BxQJQlGKUb/N7MaXSPnIwcsBWIWRy/7XW9O0BpU+6DQ7ygnbHZZ+i3UCTOP cNwknGKKMN/P1twqVxeWCnZB8sL/PCQh7ehJs2n193DtMg83w7kV/2/QCMRjH0SNGUX4 ySrU111RajsOYe8VaxOeZ5+Hq6lke2cPu6qY7Qtgx0Z5bvSBCZ+VfopznUvaVYJf7DFy fgwi0NKHVp51N7l1aEK3eibEWsBxWDiRDpCh6UkZrvnSi896qjiwHPRUW2n064rHVOlL WXUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nprCUKRd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x44-20020a50baaf000000b00440a49861dcsi9339294ede.412.2022.08.16.05.45.43; Tue, 16 Aug 2022 05:46:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nprCUKRd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234611AbiHPLvP (ORCPT + 99 others); Tue, 16 Aug 2022 07:51:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234852AbiHPLuV (ORCPT ); Tue, 16 Aug 2022 07:50:21 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D3E6A6C55; Tue, 16 Aug 2022 04:25:21 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27GAUWIl016923; Tue, 16 Aug 2022 11:24:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=XD8p0yeIP6FHp1zRXk2g6v1Fja3jOBHVk/L7ZMjGmI8=; b=nprCUKRdazmLN/rCIDOoX2LM7UYtYciHWi/jLYKy9hSL1lrLHDK/YhJBZCsGq/wIb4i7 ONvpDE1+3rRAxA1UGByguS1ZiZxKppSbsrl0ku55no8CRJ2WnW3DWq773gj2uNc0Kfau lprrmkw2QPcZWyOXZvtIex0saFFntAPsGP98ihnTYCenakfCEJloyx7vaEk23GLFAhQB Qqrf9t4ABHnMHHSokZWjFiwJ4LVXPhaGP/UpJPQ76u8iTeN+AtwXYjsjXWBRn/q7x+zB OV+ylDbg7XHv4Y1qMtmXQPdMTGOtK32mTGIchJ5mRy6ylutF5YgHPt9OVj4fs/llcqac vw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3j058t12g6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Aug 2022 11:24:40 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 27GBOdUM023573 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Aug 2022 11:24:39 GMT Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 16 Aug 2022 04:24:34 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v5 5/7] remoteproc: qcom: Add efuse evb selection control Date: Tue, 16 Aug 2022 16:53:52 +0530 Message-ID: <1660649034-4303-6-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1660649034-4303-1-git-send-email-quic_srivasam@quicinc.com> References: <1660649034-4303-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: n22kFm8peiQ4M5o8jznsalXCri18AELa X-Proofpoint-GUID: n22kFm8peiQ4M5o8jznsalXCri18AELa X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-16_07,2022-08-16_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 mlxscore=0 spamscore=0 impostorscore=0 mlxlogscore=977 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208160042 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add efuse evb selection control and enable it for starting ADSP. Signed-off-by: Srinivasa Rao Mandadapu --- drivers/remoteproc/qcom_q6v5_adsp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_adsp.c b/drivers/remoteproc/qcom_q6v5_adsp.c index 701a615..b0a63a0 100644 --- a/drivers/remoteproc/qcom_q6v5_adsp.c +++ b/drivers/remoteproc/qcom_q6v5_adsp.c @@ -56,6 +56,7 @@ #define LPASS_BOOT_CORE_START BIT(0) #define LPASS_BOOT_CMD_START BIT(0) +#define LPASS_EFUSE_Q6SS_EVB_SEL 0x0 struct adsp_pil_data { int crash_reason_smem; @@ -86,6 +87,7 @@ struct qcom_adsp { struct clk_bulk_data *clks; void __iomem *qdsp6ss_base; + void __iomem *lpass_efuse; struct reset_control *pdc_sync_reset; struct reset_control *restart; @@ -368,6 +370,9 @@ static int adsp_start(struct rproc *rproc) /* Program boot address */ writel(adsp->mem_phys >> 4, adsp->qdsp6ss_base + RST_EVB_REG); + if (adsp->lpass_efuse) + writel(LPASS_EFUSE_Q6SS_EVB_SEL, adsp->lpass_efuse); + /* De-assert QDSP6 stop core. QDSP6 will execute after out of reset */ writel(LPASS_BOOT_CORE_START, adsp->qdsp6ss_base + CORE_START_REG); @@ -522,6 +527,11 @@ static int adsp_init_mmio(struct qcom_adsp *adsp, return PTR_ERR(adsp->qdsp6ss_base); } + adsp->lpass_efuse = devm_platform_ioremap_resource_byname(pdev, "lpass_efuse"); + if (IS_ERR(adsp->lpass_efuse)) { + adsp->lpass_efuse = NULL; + dev_dbg(adsp->dev, "failed to map LPASS efuse registers\n"); + } syscon = of_parse_phandle(pdev->dev.of_node, "qcom,halt-regs", 0); if (!syscon) { dev_err(&pdev->dev, "failed to parse qcom,halt-regs\n"); -- 2.7.4