Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3888435pxp; Tue, 15 Mar 2022 08:14:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeAdCWM1/3v+RXPV1Wa4TXLLqTtxN3LVREYk+pdNXXLH7RI+Zsy716n3qvyL6KfYm6KAz1 X-Received: by 2002:a17:907:7b9f:b0:6d7:a24:8cbd with SMTP id ne31-20020a1709077b9f00b006d70a248cbdmr23249961ejc.588.1647357263261; Tue, 15 Mar 2022 08:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647357263; cv=none; d=google.com; s=arc-20160816; b=Wr4FiQZDFXZYxaaVou9mC5cINwifT/U4/sC4lavk81flftZETYZEGWkmRE2q03f9Zc abWFBTI7hJshncIn3zXc7/QM+duBindjtdJvKPtxoDefsL5cnnntscIQkfVAkKg1WgaG qFJkN2bkWsDxKiP+afNLT1KlM/15g3l4bNPfUPVm7oXhEu31N/bxo1PXrLeDdnCLxQ7i 9b6qV3rbQIyVk6Le3hxEr9MzCItkPT8oyULZ62pnvHwRTe0dHEJ6SLmuQkaGE1ePr24t u+GjdqAhYODv681RK9/7eg6EkTD5l4k+lHa34BEvjG7Y/GK5VvuFR9UVkagOtTZOaM9I 18LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nQWuqg+ddOw1oV88Ty6v00QRPKt0GAj8NU+qEDYWO1I=; b=csirKh9b0ln7Ad9dgI4ABEjcN9qQqFk1Dy89icY1azvRPbo+fDjtEBwJtYzo3F6omw I4VOOFI57uQQEDAsF/BSe2i9YcbPoWZtpk5CImZgpmEUQ24KmZWFNcjfV0p8n43yGZN3 Gp33fErbVUEI2VTUlXLxT40U5KaDbGv4pyiJb/NEqvEj7QQ5nk7pPoKUERjLQcFYChbV VYYdieewmsuuF+Jv522V8iPQEe26rjr6rrFy4/hVm5DEOF8KdCEQ7Fl+icNkaPhjffLm K8aAqqjy7ZtRCpbcSoLDKyWP84y/48LkQ9RRXxwUWDRuptB5kn91+VbGY4zskMRvH+Nq evqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DWIDuPdA; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb38-20020a1709077ea600b006da8e9a40c2si11986078ejc.575.2022.03.15.08.13.56; Tue, 15 Mar 2022 08:14:23 -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=@linaro.org header.s=google header.b=DWIDuPdA; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242517AbiCNW3i (ORCPT + 99 others); Mon, 14 Mar 2022 18:29:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233289AbiCNW3h (ORCPT ); Mon, 14 Mar 2022 18:29:37 -0400 Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88CB9FD1C for ; Mon, 14 Mar 2022 15:28:26 -0700 (PDT) Received: by mail-oo1-xc29.google.com with SMTP id j7-20020a4ad6c7000000b0031c690e4123so22322857oot.11 for ; Mon, 14 Mar 2022 15:28:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=nQWuqg+ddOw1oV88Ty6v00QRPKt0GAj8NU+qEDYWO1I=; b=DWIDuPdANPxggwyxysS41MKFKbgxS7fkRxBrxcq4WZhLsEOVoC/190qUjKO0WrcEz2 HiK0siER3AD5sgCRTQNgQ8/N5EX2OLxSNRG5cZ0leQS9KUP9kapFMG+dof6VDruanClL hh8qFFy6AiVYFXWrs6N4xXfPTWx6g5ZU1zLrOgwulN+/ejxqi1Pv/GF3zKo/R1ZmghSX yPFU8OfhQva/95dcbXAVEdH9oDcVDxRUT02RDoqZa2FGx3TcjyjRG8U7wOki+KQLldGY XdcI2t/BkHas1esRbgo4ySE9bY98ZY1WelKEct+9PpPijyvyMOujB6o3CErj58wtXgEK C3Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nQWuqg+ddOw1oV88Ty6v00QRPKt0GAj8NU+qEDYWO1I=; b=RktqM66Wl09Buiiu+AB1Q/z4RO/ScKKoJTuYrOSVkQu4/U3iPRxQGbe3faMfAKCQbP Q+EI2ahYlQ2ctNBjM54OPPTf8nNm9PnFT1i7qOIxxxyJKb9GAYOzQvRsWfrBweM5P+dF AN+XNTveZg1reyM0QsT+RttVCfF0pG8CFIwPk/a8dzeKkRwzpGwYycGEy7FVYZmthjXq YJOmsVeBA4S2Mcjh5CdIC/1VOJ6y3ovohMiJOuC5g/1alRx3y64mT2SSaDQZemuBLF/2 QWBHex9c8GieilnKeN82QJ9wiHw3ddaBUKVg5JcfyowDRw557eNapvNgy3FDyQutvMWe JIHQ== X-Gm-Message-State: AOAM531VBTUBb1VtdTvPUZ0PZMN8QO/0DjSa0n2FWJW85z32poNcs7Ei q3CJ6m5JnGkIpAQ6NMfP9jy7Mw== X-Received: by 2002:a05:6870:17a1:b0:da:b3f:3258 with SMTP id r33-20020a05687017a100b000da0b3f3258mr512703oae.264.1647296905949; Mon, 14 Mar 2022 15:28:25 -0700 (PDT) Received: from builder.lan ([2600:1700:a0:3dc8:3697:f6ff:fe85:aac9]) by smtp.gmail.com with ESMTPSA id n128-20020a4a4086000000b0032118eda64bsm7991304ooa.38.2022.03.14.15.28.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Mar 2022 15:28:25 -0700 (PDT) Date: Mon, 14 Mar 2022 17:28:23 -0500 From: Bjorn Andersson To: Alexandre Bailon Cc: ohad@wizery.com, mathieu.poirier@linaro.org, robh+dt@kernel.or, matthias.bgg@gmail.com, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, stephane.leprovost@mediatek.com, khilman@baylibre.com, Julien STEPHAN Subject: Re: [PATCH v4 6/7] remoteproc: mtk-apu: Add support of MT8365 Message-ID: References: <20220304161514.994128-1-abailon@baylibre.com> <20220304161514.994128-7-abailon@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220304161514.994128-7-abailon@baylibre.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Fri 04 Mar 10:15 CST 2022, Alexandre Bailon wrote: > From: Julien STEPHAN > > This adds support of APU available in the MT8365. > > Signed-off-by: Julien STEPHAN > Signed-off-by: Alexandre Bailon > --- > drivers/remoteproc/mtk_apu.c | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/drivers/remoteproc/mtk_apu.c b/drivers/remoteproc/mtk_apu.c > index deec51b86ba5..57dd73c63d3f 100644 > --- a/drivers/remoteproc/mtk_apu.c > +++ b/drivers/remoteproc/mtk_apu.c > @@ -96,6 +96,24 @@ static const struct mtk_apu_conf mt8183_conf = { > .clk_names = mt8183_clk_names > }; > > +static const char * const mt8365_clk_names[] = { > + "if_ck", > + "edma", > + "ahb", > + "axi", > + "ipu", > + "jtag", > + "smi_cam", > + "ifr_apu_axi", > +}; > + > +static const struct mtk_apu_conf mt8365_conf = { > + .core_default0 = BIT(26) | BIT(20), > + .core_default1 = BIT(3) | BIT(7), Would it be possible to get some defines for these bits as well? Thanks, Bjorn > + .num_clks = ARRAY_SIZE(mt8365_clk_names), > + .clk_names = mt8365_clk_names > +}; > + > static int mtk_apu_iommu_map(struct rproc *rproc, struct rproc_mem_entry *entry) > { > struct mtk_apu_rproc *apu_rproc = rproc->priv; > @@ -633,6 +651,7 @@ static int mtk_apu_rproc_remove(struct platform_device *pdev) > > static const struct of_device_id mtk_apu_rproc_of_match[] = { > { .compatible = "mediatek,mt8183-apu", .data = &mt8183_conf }, > + { .compatible = "mediatek,mt8365-apu", .data = &mt8365_conf }, > { /* sentinel */ }, > }; > MODULE_DEVICE_TABLE(of, mtk_apu_rproc_of_match); > -- > 2.34.1 >