Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp243244imn; Thu, 4 Aug 2022 04:20:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR4zpAHsaBd4vOZQwsJJbh8rUwup/8eBhWvkuQW0HBX6r8m12j9EA5d37cHGEtJ1y4PWaKXO X-Received: by 2002:aa7:8882:0:b0:52d:7e23:b21b with SMTP id z2-20020aa78882000000b0052d7e23b21bmr1231716pfe.46.1659612005752; Thu, 04 Aug 2022 04:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659612005; cv=none; d=google.com; s=arc-20160816; b=x85iCWn8RfGZE/jbzuhMS21tYiyEQH4sjGRDj53HveJrE4IGC2C4T69zu95DjDkghH prjKVpw+UMY0fXq7s1Ld9U54lTb71COolXporTMz4AgFzawGMxC0Kw9DFfXT7pUhW3hW mfo1m05kqzZXgRWOiWpAAlWxsw1GpxLL7aHqIZuOYgD8tF6keARNBqhRwizt+bvb7DNm G8BUID+DgsmyqbxaeZr4IuA+l3HAuPaZuGZ2icj2BluufD+d+UlNIB+CcVKDbL9NUieE qD0kI35ov3y/Dimpd0L/wrY4LlcPTcQ6lO0XobKlIq8V8kj1SeAKW/eqs3yzKQk+tS4j xzwg== 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=uubreQVPW+nKm+C5bpwgjd/56EiTH4beoxN3z2PHa9c=; b=q6wOtJvpNK3FNc2RUn+HYluzvawlv2MuiNlWTQmij07djvO5Y7SHaqeCePaElfXJjE 4/OaUxLBE11eA+ZKphFR6477Sj8Qh/C/ZCi6iT8w+h03j7wa4HL8+6Rq4jWmOzgHuuGN KQp8FTYU3GZRyL98HvTEXkdIFiObvDHp259KV2wYtWdujuPHSnCjBPZ19f1kABYxv++s 6uIeVjpbiN6O7o1UFlBDgcbiYPkEvTK8mRG3X/55FQlRqOkRVBLOH3O2P//uYHaDqM8n BpP8BdtZYbvDBr5MG8MqXRitgcKIaFWA/cOUyoFM6PjPQOYv3new8FVNVmCqCvtCO72Y mwhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=y89COfC6; 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 g11-20020a17090ace8b00b001f335138e04si4265464pju.163.2022.08.04.04.19.51; Thu, 04 Aug 2022 04:20:05 -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=qcdkim header.b=y89COfC6; 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 S239616AbiHDLRI (ORCPT + 99 others); Thu, 4 Aug 2022 07:17:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239595AbiHDLQk (ORCPT ); Thu, 4 Aug 2022 07:16:40 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F7B72250C; Thu, 4 Aug 2022 04:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1659611800; x=1691147800; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=uubreQVPW+nKm+C5bpwgjd/56EiTH4beoxN3z2PHa9c=; b=y89COfC632Deo1OkIoDSqqSOP/5TlbWxQF8kT8Rwy3tinJgw8zDONuxg LL2HqA/G998jawspKz1QSiw68HJve0xSGRUh8TIjFJ3Ki634ztQR1Hwyt RB3JFLQuE6WUOw8f7LDqVOheWM9xGHi/9pS1IAnLMAv5u7/K5JJwF0gB/ U=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 04 Aug 2022 04:16:39 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2022 04:16:39 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 4 Aug 2022 04:16:39 -0700 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; Thu, 4 Aug 2022 04:16:33 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v2 5/8] remoteproc: qcom: Add efuse evb selection control Date: Thu, 4 Aug 2022 16:45:48 +0530 Message-ID: <1659611751-7928-6-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1659611751-7928-1-git-send-email-quic_srivasam@quicinc.com> References: <1659611751-7928-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-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 a9fcb5c..201cc21 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; @@ -85,6 +86,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; @@ -366,6 +368,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); @@ -520,6 +525,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