Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2272509pxm; Fri, 4 Mar 2022 12:50:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhOUfOh4TI5CsfvfDaEyhgPXj8nMK0QaNQvdsMxjlUf4fGlOb0mOTWA0lr7M2At+t7Wh/4 X-Received: by 2002:a05:6a00:885:b0:4f4:17d8:be31 with SMTP id q5-20020a056a00088500b004f417d8be31mr315335pfj.57.1646427006586; Fri, 04 Mar 2022 12:50:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646427006; cv=none; d=google.com; s=arc-20160816; b=Oc1GgyruubwJ+GiyxcCGb+EWvTSHyV5ihCW1zzwrsU+KBuCPWM05Qd6DknOEM1gMg5 1S4TJogWsjnzzk8aMt+kC7x3q6cCgt0dOsn7FrrT+YGMnoauP2bQVJSXpRpiTos2pM+c 2og2vLU0zMs0N1w0iCZsGrSb0Nbx2vsGBWn+jbIKn5izXJoERc7BqRwH7AJl0Ed1GfDl UlTcMHLOz0zJykD4DycLA7tM+Dm8+WhvCRmW/8BCtV0CgDkQGdVsq51CxSn3QZ8etGFM rmXX2LX2afVhXTgjZIEDO/083SWCldgD2LN+Nh2SFyhMNTfLEGg/VQLILsC294N/P0/6 +iuQ== 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=16aGvyY6fmPhhVYfQXbNCxfZJxOVo7nnrPOm+3Luipg=; b=MbPgETUy9BrLBeihAiBkzTZCrRHD8+tChLdxWcme14XJy2hyYtlwaVQ8qjG1uzIQX0 HFKTMOSIx1TDaah35hm8pBDs9+vmBm3ifyPhZQiQvQK6T7hcXY4FRMoVBReQYhSB5ee7 4dNbfEx1SElFDSL3220fqnG9fsABRFE+440OX3ca1+3QIsnMDfz9CzARqZBANwri04ZM kOO10R+NLFAZp3BSq3+qz7pOkRkfRCGQhVgYIbdi449bcKIzi/KuimOOHlYY8sPZORnJ pGsrlGCyawAUoEwTktF1H2bx2wHj0nsmBgG6+dXUPxy/2ZCQyRz34rydNuDvYuWTfbw2 7E6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=kN8p92Nu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 63-20020a17090a09c500b001beeb215a7fsi5690402pjo.0.2022.03.04.12.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 12:50:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=kN8p92Nu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CE9A42AD32D; Fri, 4 Mar 2022 11:47:09 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240759AbiCDQQg (ORCPT + 99 others); Fri, 4 Mar 2022 11:16:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240727AbiCDQQW (ORCPT ); Fri, 4 Mar 2022 11:16:22 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF5DA1B8CBD for ; Fri, 4 Mar 2022 08:15:33 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id k24so3948230wrd.7 for ; Fri, 04 Mar 2022 08:15:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=16aGvyY6fmPhhVYfQXbNCxfZJxOVo7nnrPOm+3Luipg=; b=kN8p92NuWAbYqs8bwZlnLzwcZDbsVEWD4vm0t5XrNfLzL7aH0vHtHEcRtcG0C/1Uu7 9hdsGCdU1rbTrLacXL/Ft91zYh/W1JDQIBszrzrit1TsPj5F50AHGLBhangCud91sOb+ 0xmv5DAhd0EuvQ6glDl85z8F4M80x30xSzPfnpcNAC1bot0hw0gQVwnEHiXptu+KFEVT KtTKvHh8xyMPof3zdp+DP48Co+7DZGEpI3DZVEPQvWJu+Y5HaN7E9H5vK0HfJYoUpwXb uu+Xszyy+It68nNjX8tuaNzrkWGn+hyALM66vu0FpOGsNNU/MyaZYPtYRPeDWog4idkA Hajw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=16aGvyY6fmPhhVYfQXbNCxfZJxOVo7nnrPOm+3Luipg=; b=RPJAxOcIJu+3bl+u34uHEPPJWqV5gVR5T9HOws+rSrTI1N/mkWNqQX931KVVxyV8CP 7CAmNwWSdSlLV2We1IiNXaHkZlYZKXzaJ4wnAoS8YjVmF6N0jgFxFzVwP9+diQ5iYkoP 7MD+WDbijfJr0uOoeZD6nF4V9/tYbyJNEg3njTmDvBMtui5hP8bzwfhfKP8Y8Twgaym0 K2fn4klPA7W4aVKP0CDm/H3u6TJqAmpuoRvYXvf4EKR1DNGC4DNlUcwZGcQTiZ16KEGO BzYiSeLiV2mo8neFlTP7bKChmw+V3Kgoq7D4fOZWLo8YNDN+BCplu/vXRd9Dkkp2LCud Yygw== X-Gm-Message-State: AOAM532fH0SbIO3Eyg95t6rf2ykIHVm7VSAvVAf3P2rAbvFyD9eA90ea nrS1B7hu9j0Wyj32NJPq1IJSuA== X-Received: by 2002:adf:ed0c:0:b0:1f0:63a5:36aa with SMTP id a12-20020adfed0c000000b001f063a536aamr4767846wro.588.1646410532349; Fri, 04 Mar 2022 08:15:32 -0800 (PST) Received: from xps-9300.baylibre (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id g6-20020a5d5406000000b001f049726044sm4937307wrv.79.2022.03.04.08.15.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 08:15:31 -0800 (PST) From: Alexandre Bailon To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, robh+dt@kernel.or Cc: 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 , Alexandre Bailon Subject: [PATCH v4 6/7] remoteproc: mtk-apu: Add support of MT8365 Date: Fri, 4 Mar 2022 17:15:13 +0100 Message-Id: <20220304161514.994128-7-abailon@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220304161514.994128-1-abailon@baylibre.com> References: <20220304161514.994128-1-abailon@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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), + .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