From patchwork Fri Apr 2 10:06:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 414333 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1284203jai; Fri, 2 Apr 2021 03:06:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjuwUaadW3h8Cmehx2y388qtU83sB0aqpa0wfdr6NjNANG87YH6JJdJARgDQ2M6y885wnN X-Received: by 2002:a05:6e02:2182:: with SMTP id j2mr11067862ila.89.1617357987108; Fri, 02 Apr 2021 03:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617357987; cv=none; d=google.com; s=arc-20160816; b=pHPv7C1LDvE4rhMM6wRU/We4hJscQ/CuCkxSGhU30Dit1DG3Wwv8inpCzS2KjGNGTk XVmirSm7EpsdbcHigB4uGOqfZl5UyGkzYgRgeybjrWxwh0rfupQD/CDHOJbetWBsoYd2 uO4vQ8aoUqWeYI+AP0Tb0KpT81YMMPsylWaEZ3Vux+DB/fpqBtWSp0v29EZZl+KkYgHu 1PP/AYM+R1UaplZTJ4k2FfF5AuFX4iEqhoNrek48+HZm3vQG23aG5HXKUvWl/ertp3j4 YDjszYK22dphtfOpcHwzk9MSKxD4iyfQWNndvxnvbrlC6RmFJVgj9kMjWn55Uc9VYs5A IS7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=//Lf2E+FwfUxhoM1H7CSX+v4f8W4Os22eBseL5ilxQ4=; b=j3cfqbbHjoMWFNoPq7O2No0cgOYa+sPBL0wmHZUS22QXUPj41opWFqXsAfFpk3zGfn zQZ4UyFjyQCvXkeRKEHzTdWE70PYdy5jUwMi/RfIckuNm9BF0Dw0mHdxo8YQCIWUCWJc L2tOawt0DEaNfkKZLac+lpV/MU9w+QYWCgzV2l3RABbT3Go8FH83rBxRFXQesgiUaEWD mBMbf5rtuMXi4h8Q4cdt9drKob4DL+RJcTki1mQx9LzCa1j3/G1T+n0G0XAfztJBJC46 s2EJ386HJQx9aMlonkrW0LTV5GX0npJaGo17CZGN3ENEJJCJTd8wMnHOCEIBCc3ah7nZ N8bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gVmyQltd; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si6942838ile.30.2021.04.02.03.06.16; Fri, 02 Apr 2021 03:06:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gVmyQltd; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234666AbhDBKFb (ORCPT + 17 others); Fri, 2 Apr 2021 06:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234516AbhDBKF3 (ORCPT ); Fri, 2 Apr 2021 06:05:29 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73F8BC0613A6 for ; Fri, 2 Apr 2021 03:05:24 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id x7so4296081wrw.10 for ; Fri, 02 Apr 2021 03:05:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=//Lf2E+FwfUxhoM1H7CSX+v4f8W4Os22eBseL5ilxQ4=; b=gVmyQltdWtiiQ8QKRK/VXxt5OfwoWohw6MvVGeWREIjl7ozccaZRPta0vsiNJGBrYc AjUSA5jQubOL5sAwAefpkx1CLI0mH5nJ7K/WWWJpb4bZyx0JoYA6GX4rGyGzF3CXwO7Q xiRdaT0QCSMfmo/ZB+b0eH5sSUC2U+sF37K1WS1vELTYV88lwZzxIchRNs7cpyywi7yQ Bo7tAMh7opVBynOSNB9jY45CkdEV1q9cRGym7T5+LH9h0wG7ZyqdT6wJD7NruQuzLATl IoQTiqRSyamppXDs8J/2dELRVIJ3uFmH0VkmiZwEO5m6s0AGhnPn1YSZS+BJMbEPBYH6 AJwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=//Lf2E+FwfUxhoM1H7CSX+v4f8W4Os22eBseL5ilxQ4=; b=jKU02t+k3uGr1b0mOo6elY0ZA1MBMxnAqPXMVTm9lDtuNqmWARYkQS83igaVoyDoh4 B9gUV6HZIgzA4uzYZkpkTKOc9I4u1GSQp9oJT0CJoKHuYWi6p4QW3zdimCFUPq2GqA8L xv343L9RzUqQAWYVyc9kcAUINMHsvZ6zAW3bGjaXmF+8kG+rq3FMO1Y42tfoOeIG8Iri v0Liyi2vI4J18ic5KPHMM8gWVP1UNJXaap9nFXxQ6tOJuAee83Dlb3XJO4Y7dgmwppYm hrXJ8OiFvF0W2bsjrpXg30kyPXRvV0gogfXpD8Y9zmir5zwm7jiVLhuNOHW2tkOE9Ofw jlkw== X-Gm-Message-State: AOAM533Gf1oJhgujMJdNAhXcF47kkqRYL1C8lt/Vwj0q0+UAn56eQqAD mfMvwAftoIvUZ8OLW0s524fs4Q== X-Received: by 2002:a5d:58ce:: with SMTP id o14mr14742728wrf.4.1617357923134; Fri, 02 Apr 2021 03:05:23 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id v18sm15466618wrf.41.2021.04.02.03.05.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Apr 2021 03:05:22 -0700 (PDT) From: Bryan O'Donoghue To: stanimir.varbanov@linaro.org, agross@kernel.org, bjorn.andersson@linaro.org, mchehab@kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: bryan.odonoghue@linaro.org, dikshita@codeaurora.org, jonathan@marek.ca, vgarodia@codeaurora.org Subject: [PATCH v3 06/25] media: venus: hfi: Define block offsets for V6 hardware Date: Fri, 2 Apr 2021 11:06:29 +0100 Message-Id: <20210402100648.1815854-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210402100648.1815854-1-bryan.odonoghue@linaro.org> References: <20210402100648.1815854-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Dikshita Agarwal This commit defines a range of new base addresses for already defined blocks. - CPU_BASE_V6 - CPU_CS_BASE_V6 - CPU_IC_BASE_V6 - WRAPPER_BASE_V6 The base addresses of the blocks are slightly different for 6xx but, aside from that are layout and bit compatible. New 6xx specific block addresses will be added in separate commits. Signed-off-by: Dikshita Agarwal Co-developed-by: Bryan O'Donoghue Signed-off-by: Bryan O'Donoghue Acked-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/hfi_venus_io.h | 4 ++++ 1 file changed, 4 insertions(+) -- 2.30.1 diff --git a/drivers/media/platform/qcom/venus/hfi_venus_io.h b/drivers/media/platform/qcom/venus/hfi_venus_io.h index 4c392b67252c..8604b213f03f 100644 --- a/drivers/media/platform/qcom/venus/hfi_venus_io.h +++ b/drivers/media/platform/qcom/venus/hfi_venus_io.h @@ -19,6 +19,9 @@ #define CPU_CS_BASE (CPU_BASE + 0x12000) #define CPU_IC_BASE (CPU_BASE + 0x1f000) +#define CPU_BASE_V6 0xa0000 +#define CPU_CS_BASE_V6 CPU_BASE_V6 +#define CPU_IC_BASE_V6 (CPU_BASE_V6 + 0x138) #define CPU_CS_A2HSOFTINTCLR 0x1c @@ -59,6 +62,7 @@ #define CPU_IC_SOFTINT_H2A_SHIFT 0xf /* Venus wrapper */ +#define WRAPPER_BASE_V6 0x000b0000 #define WRAPPER_BASE 0x000e0000 #define WRAPPER_HW_VERSION 0x00