Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp719547pxu; Wed, 6 Jan 2021 02:30:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyH8qKdC+bc5coXIpm3IGruvnin4JRR+mg6JZe4Z+TR5NxCpYl46dur9b9uLiI+fJTswQb8 X-Received: by 2002:a17:907:9614:: with SMTP id gb20mr2298903ejc.406.1609929016083; Wed, 06 Jan 2021 02:30:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609929016; cv=none; d=google.com; s=arc-20160816; b=qag9ZDnFrqcx3pNbV+nfe14IA+k8IA6vN/L4GQaQV55HpIR0YxnEOYR1J4d547tk2J aS5DSz1fWJB/SlZUX71Km1j1wV2Ciia9BCmyZ6qcMsCLR9g87nr4xUdYcE+5DXakUiu9 JJU5XNlWlsbh/5RiYilxk59WSanVsmMNBOvII7hVzLN56Bz+FhoeFLIfXliTYXXyHe2+ mSiY7rw262H/AEgJLw/+EtrCKeTc/KK/SQuDmztxaFr4XMcQWVoK5OH9Tn+VBtNG+JWu t0riKhS/bmA57b8cIf7t0KZQb2b92adCnuTfkqrDlk5J8vhPqdYoboPXWdil0b4LZ/Xg GAIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=UXZIAZqh+xBfL6TUuJ2CLNmbqo4XogXEQ6f21aMa31Y=; b=pFp7QSV/NJfK5HPJaRO6vaLKmb9z94/yiaqdusP6lzdUUG6pY1D/2ASN14zd0mw9oI 9tmmlAQQYeXLgQ43Rds3vPopowk6Vn+230iye7HZpBAwQVOfTK9veJOsq+pzgyhB+IUu xyvbQMtXDQbRc0o+JsisdcYZbtwGKaMT3O4Mk7452nWEQd0XoyYhjuoKc7rbKqAECEwU PqVrjUo4ln6bbPeBU7vdZV6DMDHjxsoKY+TA5xiu7GD6zTHXE2Mg8g9vOIA4i8QahrVS LAXIr/qaAbRtnsBcM4vT5jesTGJXFE1PXy9GN7R+HJhv6QVVOv74xwttmTKv4me10aos vLOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PvQYGRay; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m3si736236ejr.562.2021.01.06.02.29.50; Wed, 06 Jan 2021 02:30:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@chromium.org header.s=google header.b=PvQYGRay; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726461AbhAFK02 (ORCPT + 99 others); Wed, 6 Jan 2021 05:26:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbhAFK02 (ORCPT ); Wed, 6 Jan 2021 05:26:28 -0500 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D99D2C06134C for ; Wed, 6 Jan 2021 02:25:47 -0800 (PST) Received: by mail-pg1-x52e.google.com with SMTP id 15so1927925pgx.7 for ; Wed, 06 Jan 2021 02:25:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UXZIAZqh+xBfL6TUuJ2CLNmbqo4XogXEQ6f21aMa31Y=; b=PvQYGRaylR7ZLMt781fGYH7PAdHnlOlFo5S+lEYXioh2rHtPWzCfHRyIVB+KUg4Uun llL7GxDSh2AbRHH6DbNpOA9f7A+/V9L92awzQOhE+TKdAR3MMgLHjaPIjQ6xUL6X3MVN 2d7Wtvi6gGdp3FR36z7QbJlEGe62xFygXYpO0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UXZIAZqh+xBfL6TUuJ2CLNmbqo4XogXEQ6f21aMa31Y=; b=tE+tFVglaV4UM0kmFX60gf0PZr8+kVGA9XYu9gR/44aqUh1XOSGyVcXS59mcFJA4mx 3r9HtsjQ6O0o51/coWQe/xom2vz+rNP9fY2XdEgm1BWm98q/qy9TVOGimjBla6y7d4w8 pMt7npcI5bEMhavFfVLq6iqV3ucmZmnhdRBpFjZycm/nN4wZ60Gzxu6U0ptZ5/15ZYRH XglFqmbzLENo5tYSO/GEnPHF9qCf+yC+vC0cd2o5BVGqYriWgvRDWcj/gO5ftqbXEsLx BKBvH7v+ExzK/VLI4EtWuNln56FbydvEjDQCtgKk69tH7tK6T4CMhbWlKVvbZ5pE6+i7 /CNA== X-Gm-Message-State: AOAM532iW0dncjJowVHHgOBKllV2hrYRb7Gw1poUi/S7/oGe2qgflgR/ ExHQ9Vk2E3xOuNQWIG17azWQkzhYcT6yVENLm/I2Fw== X-Received: by 2002:a63:1a10:: with SMTP id a16mr3708292pga.317.1609928747355; Wed, 06 Jan 2021 02:25:47 -0800 (PST) MIME-Version: 1.0 References: <1608642587-15634-1-git-send-email-weiyi.lu@mediatek.com> <1608642587-15634-11-git-send-email-weiyi.lu@mediatek.com> In-Reply-To: <1608642587-15634-11-git-send-email-weiyi.lu@mediatek.com> From: Ikjoon Jang Date: Wed, 6 Jan 2021 18:25:36 +0800 Message-ID: Subject: Re: [PATCH v6 10/22] clk: mediatek: Add MT8192 basic clocks support To: Weiyi Lu Cc: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat , srv_heupstream , open list , Project_Global_Chrome_Upstream_Group@mediatek.com, "moderated list:ARM/Mediatek SoC support" , linux-clk@vger.kernel.org, "moderated list:ARM/Mediatek SoC support" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 22, 2020 at 9:14 PM Weiyi Lu wrote: > > Add MT8192 basic clock providers, include topckgen, apmixedsys, > infracfg and pericfg. > > Signed-off-by: Weiyi Lu > --- > drivers/clk/mediatek/Kconfig | 8 + > drivers/clk/mediatek/Makefile | 1 + > drivers/clk/mediatek/clk-mt8192.c | 1326 +++++++++++++++++++++++++++++++++++++ > drivers/clk/mediatek/clk-mux.h | 15 + > 4 files changed, 1350 insertions(+) > create mode 100644 drivers/clk/mediatek/clk-mt8192.c > > diff --git a/drivers/clk/mediatek/clk-mux.h b/drivers/clk/mediatek/clk-mux.h > index f5625f4..afbc7df 100644 > --- a/drivers/clk/mediatek/clk-mux.h > +++ b/drivers/clk/mediatek/clk-mux.h > @@ -77,6 +77,21 @@ struct mtk_mux { > _width, _gate, _upd_ofs, _upd, \ > CLK_SET_RATE_PARENT) > > +#define MUX_CLR_SET_UPD_FLAGS(_id, _name, _parents, _mux_ofs, \ > + _mux_set_ofs, _mux_clr_ofs, _shift, _width, \ > + _upd_ofs, _upd, _flags) \ > + GATE_CLR_SET_UPD_FLAGS(_id, _name, _parents, _mux_ofs, \ > + _mux_set_ofs, _mux_clr_ofs, _shift, _width, \ > + 0, _upd_ofs, _upd, _flags, \ > + mtk_mux_clr_set_upd_ops) > + > +#define MUX_CLR_SET_UPD(_id, _name, _parents, _mux_ofs, \ > + _mux_set_ofs, _mux_clr_ofs, _shift, _width, \ > + _upd_ofs, _upd) \ > + MUX_CLR_SET_UPD_FLAGS(_id, _name, _parents, \ > + _mux_ofs, _mux_set_ofs, _mux_clr_ofs, _shift, \ > + _width, _upd_ofs, _upd, CLK_SET_RATE_PARENT) > + conflicts, these macros are already existed in upstream. > struct clk *mtk_clk_register_mux(const struct mtk_mux *mux, > struct regmap *regmap, > spinlock_t *lock); > -- > 1.8.1.1.dirty > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek