From patchwork Fri Mar 24 08:04:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 666552 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp449141wrt; Fri, 24 Mar 2023 05:55:49 -0700 (PDT) X-Google-Smtp-Source: AKy350aPkGO9EGkhbcoqgcIOOyba1Pzlxa1WR6QfMaoD9HNRBowe60vIP+cZaX4VBvg3eHX3JYkw X-Received: by 2002:a17:90b:1e49:b0:233:76bd:9faa with SMTP id pi9-20020a17090b1e4900b0023376bd9faamr2781727pjb.47.1679662549232; Fri, 24 Mar 2023 05:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679662549; cv=none; d=google.com; s=arc-20160816; b=mO8fdseuCR1Y3QZnyik/+suhhO1Ybo8kuh8om5i7pZxKltFG8fkTUA0FzE13LQTfTA 3cZZCx1gmjREZdQyDbaMK3mBmutSJILZgq+iKVF8V0KJcCinx7CM1XmHvPFkIKxAfWRG daDJ3QmtMa/AT3PHeyN8+yrweww+Dm8ufs26u/CbtQ5EAMtaqV83vLgh0re+vQOpX4dZ gwI8PMuc5eHHkxmLoWmkKpSmFZg7XdiYKssJLn5Q5PcWBII0Ek6/uHTsljqM5c3SWDte gkVnw55tglqBy9D6thsoIlEmPbR9T7/GZQ7uh41xcMk+HCHAf2zLGH7w06I1XKZqmAY3 63zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=348CRDZrzAjDt5mi2CPA2bsJ5TsDLp9Xz9q6y4mKS4M=; b=HrjUeqSF4LZuccZNndKEEdDjU409XZiwfW1JevrYFe33hJCZYf0zgLYze1FhD/j2tB kJuEVs4pPACaQfcdV9TKK3dvIplWloD27llnVAq4tqW1wx7N1y1vstluLqm/Mj7Q+XRa e0CF4gbfLuB8H8XkTQzKeBI+DGgYpVBGE3hlWT75d8CQOOyhz5OEw4Jv3B8ZtoQlGaSC mxLEvGAHdzvoOMAIHCTd4h5SGhcNjS0qIviO2+2TTRyhZgyx1kxBg3jTpI3Z+7j79bzy W+mu8ODEoIb3t9kjPr7gSWEyTy6zvqopqKunmeuTihGeWzklZXMtmVx3GPXYoBaBlulp rkjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ff1TAbwy; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a18-20020a17090a8c1200b00230da5c13e3si4287436pjo.43.2023.03.24.05.55.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 05:55:49 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ff1TAbwy; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 63BBF85DAA; Fri, 24 Mar 2023 13:55:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Ff1TAbwy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2D350859B4; Fri, 24 Mar 2023 09:05:28 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C24AB859B4 for ; Fri, 24 Mar 2023 09:05:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bhupesh.sharma@linaro.org Received: by mail-pj1-x1034.google.com with SMTP id p13-20020a17090a284d00b0023d2e945aebso5288235pjf.0 for ; Fri, 24 Mar 2023 01:05:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679645124; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=348CRDZrzAjDt5mi2CPA2bsJ5TsDLp9Xz9q6y4mKS4M=; b=Ff1TAbwynnYjqsydZacmmbTFduXsRqLJj5aJXpMwiUrRdU9qDo0HISij8jPXjqB8JU w6zqDUT8pQyNeXUGoGXfA2l9deREyc/70CFtKFrqD40Y4GKUkExCMbHS3WpxEWvjgtYL 0IquuyZpniGivev+YtJg23BRObBpuU/gVKDHdiZqbwdrW6W6PSPXtp5EBIvopT2jPbu4 jbsUdUCAi7oLvdGNkg03KlMfgppkR442NtVsUyD13m2XypQuUmgJyUsDDTYHku54dRgN /wuS4lQ9ElT0+CObcXGLYDQ1ram0SoCot1MkM5f0XDSmwKxOotT6WoNHSZld8KI9KVTD hGdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679645124; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=348CRDZrzAjDt5mi2CPA2bsJ5TsDLp9Xz9q6y4mKS4M=; b=W2BlQ78NCMNy78gIaacpynMRokv/DGoki9DD9pYv5N3f/340MvG4rJgDUEkwhyZpgD fdAd9UEiizMqwyeU++UpT/UBPZZro87u0bt8jRR7VJOANyUyp1I3Evb5ro8NAZosi9D3 EqNyRtG2qKYbv3iOvqpQK7olQAJ96IHFFvDbb3/q4RJupNhyLnwHxEKy+4f/9faZEdLl 5B/Rx8Pr13XNY4keX1EtmaPFDuDesu6Ch4SNDFS/lxk21E+LDc5wdbgU4EAIisJU3cEX Er2BT6ZYgYCVdeJJIFzCVlzWT44MTh6mdyoJegpPdgzyGHXFB49ncBx4DyrCX2He6Z8G w9/w== X-Gm-Message-State: AAQBX9feCOJoPFErJffCbd4uJA8wSQSxCISV7DsiPGCxqAVYeIMVTVNC pc5Q5J2Usqrtyr+2u6BAL5hORhiGydrOlRcri/g= X-Received: by 2002:a17:903:11c8:b0:1a1:a790:c1e6 with SMTP id q8-20020a17090311c800b001a1a790c1e6mr2154203plh.46.1679645123765; Fri, 24 Mar 2023 01:05:23 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id s22-20020a170902989600b001a04a372fa0sm12205293plp.251.2023.03.24.01.05.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 01:05:23 -0700 (PDT) From: Bhupesh Sharma To: u-boot@lists.denx.de Cc: jh80.chung@samsung.com, peng.fan@nxp.com, rfried.dev@gmail.com, sjg@chromium.org, trini@konsulko.com, dsankouski@gmail.com, bhupesh.linux@gmail.com, bhupesh.sharma@linaro.org Subject: [PATCH 3/5] reset: qcom: Add support for SM6115 SoC reset table Date: Fri, 24 Mar 2023 13:34:16 +0530 Message-Id: <20230324080418.3856409-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230324080418.3856409-1-bhupesh.sharma@linaro.org> References: <20230324080418.3856409-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 24 Mar 2023 13:54:51 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Bhupesh Sharma --- drivers/reset/reset-qcom.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/reset/reset-qcom.c b/drivers/reset/reset-qcom.c index 94315e76d5..046d2c083b 100644 --- a/drivers/reset/reset-qcom.c +++ b/drivers/reset/reset-qcom.c @@ -131,6 +131,24 @@ static const struct qcom_reset_map gcc_qcom_resets[] = { }; #endif +#ifdef CONFIG_TARGET_QRB4210RB2 +#include +static const struct qcom_reset_map gcc_qcom_resets[] = { + [GCC_QUSB2PHY_PRIM_BCR] = { 0x1c000 }, + [GCC_QUSB2PHY_SEC_BCR] = { 0x1c004 }, + [GCC_SDCC1_BCR] = { 0x38000 }, + [GCC_SDCC2_BCR] = { 0x1e000 }, + [GCC_UFS_PHY_BCR] = { 0x45000 }, + [GCC_USB30_PRIM_BCR] = { 0x1a000 }, + [GCC_USB_PHY_CFG_AHB2PHY_BCR] = { 0x1d000 }, + [GCC_USB3PHY_PHY_PRIM_SP0_BCR] = { 0x1b008 }, + [GCC_USB3_PHY_PRIM_SP0_BCR] = { 0x1b000 }, + [GCC_VCODEC0_BCR] = { 0x58094 }, + [GCC_VENUS_BCR] = { 0x58078 }, + [GCC_VIDEO_INTERFACE_BCR] = { 0x6e000 }, +}; +#endif + static int qcom_reset_assert(struct reset_ctl *rst) { struct qcom_reset_priv *priv = dev_get_priv(rst->dev);