Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp380774imn; Wed, 3 Aug 2022 07:50:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR79V1thm0nVlofmhnd7aNDvIwr9YELYYPPg2RcDyqYy6spoBmhgQG6VD72gGGtPGm7dc30v X-Received: by 2002:a50:d0da:0:b0:43d:5f5f:32c3 with SMTP id g26-20020a50d0da000000b0043d5f5f32c3mr20192514edf.192.1659538229930; Wed, 03 Aug 2022 07:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659538229; cv=none; d=google.com; s=arc-20160816; b=CvPBzbsk8lgiwTMJ9ycYvGQXdGvmIrKpEtcu3H2bH9nrdomJxIaErPOgOAJBtJSy+c oRc7NxATKpOk6yCjLe3jBkxhIQ77662L0xOmuGj+cebKU2LpgW+BUOK1AWYtDkX83VCb uELRI74k2wLfdrUlAXKjDW2nzCR/jbtMNv61sSU3s7Ev9GTFX9xxAodl1FVaydTnq0ES t37ufWTPCLDS+zddKkOGRIrywYiNv4zie6LWMJm7pArTMgwxbi5dtRQ2g1eWSA8c6DjB aFm5v6O8NbnaLg43XgtALy5lydLCfo9MtAjZWSD9o9gZSE2NGYkdWh6DjyIzxQ34O5nI 32Ww== 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=CHlhP6MIzzrRH2dPC2tV9//3nUtj/C4lYdMRXIddwn/7GQPUGcwQCfcbj6J8jij7ea s2q/9XOaG75RGih0mbyY1oNwuvXpaCF+MO4zBXY3cRA3hq/jV86GS0ULQ5HtaWdeK10C xEZwEBpT7i+eyyCd3L9RocsIuij2gnTKGDKUpS2qbL0mGbjXIvS3wQv9au5i/nVMobJE 7xSQynRoEDQlklavvybYJx5MzLES81ePuzI6wZYaSbooFKMWchnskOLuH0WvFcNEA6HV pTKQ3nqGgd34gJ0UB3TwN3HPdzE6aCw1kY7gblUrxf6U64qLQ6KePd4BLI4U/r5ezEOm ROyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=YH7l5aj9; 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 hd7-20020a170907968700b0072a4249e9b5si20132854ejc.17.2022.08.03.07.50.05; Wed, 03 Aug 2022 07:50:29 -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=YH7l5aj9; 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 S238790AbiHCOW0 (ORCPT + 99 others); Wed, 3 Aug 2022 10:22:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238740AbiHCOWM (ORCPT ); Wed, 3 Aug 2022 10:22:12 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CD0320192; Wed, 3 Aug 2022 07:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1659536530; x=1691072530; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=uubreQVPW+nKm+C5bpwgjd/56EiTH4beoxN3z2PHa9c=; b=YH7l5aj9JZ4wcLCofHD8Vrh/hhjvTwr9VGrcUj0QvFBGgs3xr25L+Iae gpIzYMUY3IcPq9BlaHedAeXHVuU/zKqaRJ8j/ma3JmyU2Q9/ySa9/+P8p ++KUXrnusfVunQqG237cFtVbPeJz/wutkhWhUSm/jDlUmJB83tzlZjQi4 c=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 03 Aug 2022 07:22:10 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2022 07:22:09 -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; Wed, 3 Aug 2022 07:22:09 -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; Wed, 3 Aug 2022 07:22:03 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH 5/8] remoteproc: qcom: Add efuse evb selection control Date: Wed, 3 Aug 2022 19:51:17 +0530 Message-ID: <1659536480-5176-6-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1659536480-5176-1-git-send-email-quic_srivasam@quicinc.com> References: <1659536480-5176-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