From patchwork Fri Apr 2 10:06:33 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: 414332 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1284079jai; Fri, 2 Apr 2021 03:06:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1+O6lwJGwOzSFnddkiYgPb7xYzCBvfyE3P91a5rqLHNpKie6aZv6bkH9zXyd2AXo6IuH4 X-Received: by 2002:a92:c549:: with SMTP id a9mr10667573ilj.300.1617357976045; Fri, 02 Apr 2021 03:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617357976; cv=none; d=google.com; s=arc-20160816; b=KUb4RpwQT54ETpIIvi6rcMf8/MQq6YU0zcV6L8PCPCgqnQjc+5KrAmWp1rS5oWmD+Q ykFOt3Zg/ykmaL+UUQQ4Ydv0Y7mGZLcDxoHSWe91rMFY4VVKk/qTynDfV3898+TM9bzz 74lwHZVo1kh2jGw2fIT0eGlSnniGaqNi+LolwDMfU2mUtUDeok20hyJGmG0ZhPv+o/sR pc9MP2tTwbyBePq+Tf2s1JUUIQYePe1mn6L3pCAEkdgPqyOaucmGbTXrjs7O2zUcRUgM 0g7sdsifDEz37WKbSngJTqAn8j35sr/zmP3aBye2wHAdYdY4W0YT27odinZoPCqRR3NJ x8vQ== 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=oG76MLwzBBbHo4Scp8xxleKgLq3nfk0QlNvLqyY7BH0=; b=vHrguzdUp72ebRaNxPJUnLnZrSA3V6NvYe1PmLbPDwdLnyTj5BzfIkqWknJ4NHKsQy nqgjwY8vbQvY9czmLWYLsMB46UtgR2HolwEvPAi47QyaHdj9fgl/SWD5AwHcVmWcm5xU nmj3VHIhswURdykEBQJ7a7YIBlNdeQwNNYqKDo8UOJ2VfQVMFfEPG9quSlCcFbq+VCt3 +vIpw96QdQJp7GYKQSJkxaGAVNQ+bdafaTzcVJwA0GKt9FCkUXt0Xd8DOXwYZDFGl/oM PnsKIm8UaOBT2INC2TSDQTtRZDUMbmcw7+NmLvxEkbrXW8NZBf/n9nDKQqCKQnP0NeOM r+vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tfjaY4b3; 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.05; Fri, 02 Apr 2021 03:06:16 -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=tfjaY4b3; 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 S234397AbhDBKFb (ORCPT + 17 others); Fri, 2 Apr 2021 06:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234488AbhDBKF3 (ORCPT ); Fri, 2 Apr 2021 06:05:29 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76307C0613E6 for ; Fri, 2 Apr 2021 03:05:28 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id v4so4284384wrp.13 for ; Fri, 02 Apr 2021 03:05:28 -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=oG76MLwzBBbHo4Scp8xxleKgLq3nfk0QlNvLqyY7BH0=; b=tfjaY4b3vF9ueUmlZLWouvTlf4/QwWVI5q0REiyLpgmnAtYjT8WLXsxi5kg+42QN+s N0a5sWws7Ert8gaHbnWnyo4M5Kf+2rskmspGnfmzx6Nv2iu2ZFXtnwBWBPCc4AYYSJnA N190bXRrUYPohliNKc4aXOOFoT1qt7bnKYxGMOtDRWZm0lh1HfFiOwQGYRD4nlpp4oMc QeJERzE3vDWTvaHGLqYEoigy8nPhs7eVA0KznJagYSwATGscjBriJJslrKGwuJeDsK+O vl1jC2k0aswa9JxxQCwhdx4m7lD+Xwiz3jYO4WZvKhqIr4xwb0in/7iLnKwBn0qqsxXV Of+w== 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=oG76MLwzBBbHo4Scp8xxleKgLq3nfk0QlNvLqyY7BH0=; b=I8k2KCWPkOKFeQrAaDyvx4xstSekXeUh5i3hBjPoduX95yfUqjeIGY26weB6dRsx8o Nl9LoZqOX+InH2GEeDW5E1JszO4QHZvMm/Da9UVQCuZNoSflcCfwXv2fQeIEpClvBxek F8mGMJFtdj/WSmDGO2R1o2lpVvogp5897PVcxCfRWoaynt4A5e0mWA2pGtzCpLwjgV3w EGJBapmoW1SBYa8othHbUTPf+KzS9EevmAaNWscG8G0IrgBSSMlXBkOT8x4ZPg+5ERWa NO1TjTQIaduJs/3e6K2lKniWDUdPeMpCDH4UUODF7islgrT2R9CUuVGa2DksaajIdeaP dQ1A== X-Gm-Message-State: AOAM530htOnGfYUqBWeflUruwgkOvsFY4C2pAKfgRHIph8i1JD1913wV l20XzZDWE4o2F6RP+1FaiICw3Q== X-Received: by 2002:a5d:6c6d:: with SMTP id r13mr14364639wrz.362.1617357927197; Fri, 02 Apr 2021 03:05:27 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Apr 2021 03:05:26 -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 10/25] media: venus: core: Add an io base for AON regs Date: Fri, 2 Apr 2021 11:06:33 +0100 Message-Id: <20210402100648.1815854-11-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 6xx silicon needs to access registers from a AON base address range. This commit defines the necessary variable for later use. Signed-off-by: Bryan O'Donoghue Acked-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.c | 1 + drivers/media/platform/qcom/venus/core.h | 2 ++ 2 files changed, 3 insertions(+) -- 2.30.1 diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c index cf2aa83c4378..b6f9ef6b6dcd 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -216,6 +216,7 @@ static void venus_assign_register_offsets(struct venus_core *core) core->cpu_ic_base = core->base + CPU_IC_BASE; core->wrapper_base = core->base + WRAPPER_BASE; core->wrapper_tz_base = 0; + core->aon_base = 0; } static int venus_probe(struct platform_device *pdev) diff --git a/drivers/media/platform/qcom/venus/core.h b/drivers/media/platform/qcom/venus/core.h index 0c519211fac3..6de596b5a9d1 100644 --- a/drivers/media/platform/qcom/venus/core.h +++ b/drivers/media/platform/qcom/venus/core.h @@ -96,6 +96,7 @@ struct venus_format { * @cpu_ic_base IO memory cpu_ic base address * @wrapper_base IO memory wrapper base address * @wrapper_base IO memory wrapper TZ base address + * @aon_base AON base address * @irq: Venus irq * @clks: an array of struct clk pointers * @vcodec0_clks: an array of vcodec0 struct clk pointers @@ -134,6 +135,7 @@ struct venus_core { void __iomem *cpu_ic_base; void __iomem *wrapper_base; void __iomem *wrapper_tz_base; + void __iomem *aon_base; int irq; struct clk *clks[VIDC_CLKS_NUM_MAX]; struct clk *vcodec0_clks[VIDC_VCODEC_CLKS_NUM_MAX];