From patchwork Fri Mar 12 17:30:20 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: 398666 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1383456jai; Fri, 12 Mar 2021 09:30:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2twDM/9B23Z5/uWWrrpL4nb5EJdV0XrJCDGQ6mYg/1Q7qO0qxFHUeEk7tkUnbFRjqhMAM X-Received: by 2002:a17:906:9714:: with SMTP id k20mr9673621ejx.519.1615570202557; Fri, 12 Mar 2021 09:30:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615570202; cv=none; d=google.com; s=arc-20160816; b=T5vvmkgFJB3eIVDA/S4xy0+yD2yxn4WFr/F+8+pDICEu5nX3r+LgJYTh5LwGRUUDSB 0QAJFSrTlsd81uxuZVm5KDxSXKe7CGnCs7Q5Ezl5+tb3T26lGyjG0M/dy+DdejQU/nNP l2+Fi4UnmfwG9bg4mtGYLuvDGM4jb+rSiVA0tQZtdkGAYA6DqM9ByPJLyJ7cw1wB/vMX 04sTG3ZyC+50g5sOVcKCUJn5oYJKbFP9q64QTIUhAIDptAT1g/VWrs2ByTIpL4ZqLYZB jkIU+T+QBLet8vbidMW3uiB5ohZtuA9cs2bR7q696AGCElR7iJJIGwVOKSWT0x9IAFEr kWTg== 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=mPczF2mkvX0v8Ctuzco/YuFQRiRSTg99Y10RwxtlGjedo3UaxOKkvekNbYWX6PCdiX mYMYDu8Nmh1lcoa/2fpoVJOQIF3D2NTIYixpC3CwwdIq272Sx4HOfIOGSqS96SLs6arz jiZOAEhL9MdCW/7ndSuJ+ItpQPiDx0uUb1UrrTld+kfIfHQFSLDe0f6JngqhdNMzMlFt rG1Fs8fzLskDwclVV8ZK+qHLlzHCo/RdtcsOyeu0E+ATz5VXgKmFqlT7K7BB0/mZHyR+ IgKVBEekQla0pBZOxqSAJtmQM3JAXBa5bwa4cgZAkfoVrkqMKBb1zofAAbt2QdadxjA3 Mrmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tEjisLsO; 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 ot6si4540497ejb.337.2021.03.12.09.30.02; Fri, 12 Mar 2021 09:30:02 -0800 (PST) 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=tEjisLsO; 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 S232590AbhCLR3Y (ORCPT + 16 others); Fri, 12 Mar 2021 12:29:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232760AbhCLR3T (ORCPT ); Fri, 12 Mar 2021 12:29:19 -0500 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 3BE03C061574 for ; Fri, 12 Mar 2021 09:29:19 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id y16so5255934wrw.3 for ; Fri, 12 Mar 2021 09:29:19 -0800 (PST) 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=tEjisLsOKcUreRdPy2nqewRCnH+dXcnokK94YS9w3cNsWtXaDlU9EDeIYWzZutQR4Y inOtu4FCE7y6VALgXCgYoRCoAj06Re9tLMzs6OCJCxOJ7BcjrENmHUfoBQ5wDKBtHmUB Z932ZbI78UdiVhExYMyvhNFoJfBHpzUaLa4Q87oZY9kL/cf6EfOjjyfwFnw0VKQZ0PYL 6ParJ/2GOfpDKFICNifPd2kVTLVvcoPG1W3bGiHi8Ch0qdM36ZwzW+hurxE/TllLmoTn MloZxF0sunwxM5HWM7sE4XoIUfJhEjjkpHp5AQ1dDtHRU3Wlb4C5N1tMFcZTPqEhnW3n Oh8Q== 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=FK1va0nTwe/mRIjIaSBM3+imcduXS8/31nMu5fCfGtNkcSVLAyA9qDK40jLLok6sg5 APfowhX4J1LDAJunvxcuDiw0O+rtsap6kRCc46WoTKKE7WDXSExeeAHfSp3evVI/OfZ6 0gu2sbXIV+g6eGjsxbPXT4ccjVIof4hywRFi/g8+aegsLJLMwN8tXLMJZn0LTZon7e0C 8uh4mEZZTRbwLBqA+dySJYaKpFkqiboXmpTxg/e1d2Mwjh12wE8az+MhstjAvToXl66o U/fMM9KAoj1iQBjv2oOMJb8tQmoszxFGzrdhDW+IWveiOGPhu+yw4UG+A8urjWdaO5+r B4nQ== X-Gm-Message-State: AOAM5328k8ojq9aOwEe23JBaZb0lPSLTCk4tlKTVc0n6CrJ9EA2KFFyG uniTa8JKVdAZJz6B2WDw/4cBe5Ovz9eRRo1g X-Received: by 2002:adf:bc01:: with SMTP id s1mr15269477wrg.240.1615570157988; Fri, 12 Mar 2021 09:29:17 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 18sm2876375wmj.21.2021.03.12.09.29.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 09:29:17 -0800 (PST) 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 v2 06/25] media: venus: hfi: Define block offsets for V6 hardware Date: Fri, 12 Mar 2021 17:30:20 +0000 Message-Id: <20210312173039.1387617-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210312173039.1387617-1-bryan.odonoghue@linaro.org> References: <20210312173039.1387617-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