Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1044445pxu; Fri, 16 Oct 2020 02:20:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz04x7Rt2iR1F+iVUGl+VRQMVFEqnEoEnhTdeW5/HuqpE45t1skMrDVg7y041hB2BrKQKKu X-Received: by 2002:aa7:cd93:: with SMTP id x19mr2646823edv.183.1602840002189; Fri, 16 Oct 2020 02:20:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602840002; cv=none; d=google.com; s=arc-20160816; b=bQkM4vmMnn+gdKKzVNEP1C3n+NQEkUja5LK3sPbyySNMd1kK/xJqN0BPuEf3N28/xM IejhAseb8HeoH7YHMJzrJ/pCURdNHlAaCWara6g62wk4a29HW0JY6v1YP76WCjkxGth6 eXR4kC62Vuei9xlI77UhR62CmkYZSvvxCq7/CfJsyka0LNsQ7mnxooSJJvbXkf0PzBYA 9L96mZGCJsupqczJPiOlK42JeRGW1CxU+XGM9D1C1MptsBUXm+jvbeaa6PuX/C1tmQj3 g9fPzgnhin2gGAtzutjLv2jj9szaghtUcikCfb6Hcdb7jD97upSGw2B+xdh4ipv5aBXM 3lGA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=5VJmUi2hckCsijxBcYyhh03sDZwAMNbDuXEf/NPFrU4=; b=oh3u70ggvu8D0Xng6x+jWQ6fqQYteGy3KGyq7RTfFMErjxLTXtY79r8vvguEpUryxi vxe+i34UNA3neJbCKWw8Qc51FApCcBBMb7+qDDOzZeZExXqp+9/ln4m8PKYYUH3QvDxO SBASG5o8K3L+mBwLLEvrgIhpFCgws/+S47hi6C3KpOyReOUE1k3eB8lO8svB8u6mevzw Ut2dH1/IltVPtwofIEGoBlr3mK5gplH6XIxiwHDVldRvBylwgc90pnOPZvZ2vn4Nb/9p gZkeu7lIuduJiKFpO1loTiZeWVb55Mcfq2kAPfm1N3S9VqgmUocu3Ik2OUuu67wPBSAi Mu7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="b8sPn/iN"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si1307575ejj.231.2020.10.16.02.19.40; Fri, 16 Oct 2020 02:20:02 -0700 (PDT) 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=@sifive.com header.s=google header.b="b8sPn/iN"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406029AbgJPJSc (ORCPT + 99 others); Fri, 16 Oct 2020 05:18:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405515AbgJPJSb (ORCPT ); Fri, 16 Oct 2020 05:18:31 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F420C0613D3 for ; Fri, 16 Oct 2020 02:18:32 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id n9so1062501pgf.9 for ; Fri, 16 Oct 2020 02:18:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5VJmUi2hckCsijxBcYyhh03sDZwAMNbDuXEf/NPFrU4=; b=b8sPn/iNZ1hbUzVpPTulPn8fj7ufJEu2637RgBM8VxE9XMymWItCB/8oAIZlAU6V3/ ulvQ0s3Md9tj7JuyvdmisQNwH1gF3Ai6rSu+/T85Tp0TE6mWavWcwznhxS+gOz/Nu6GA HbN28t9OrYj6QNZCpoOOzUPhs7YxQoXaG6WBxjMdcRHQYlvPof0W93p5qV8iFhlbSnlv 4+Ggxl1o0nHi0nLrWdK6gSMnRvMkLEzHnkLJ/Vec/eL1MpzR5R6B8Rm2iadxTedPXf4W lvmgM5Mpe4S8y+at1XI++plh5fAmrOPNeDMCtEbjN3lOlGshcG7/gBv6jxKdXLE8OvFB MGLQ== 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:mime-version :content-transfer-encoding; bh=5VJmUi2hckCsijxBcYyhh03sDZwAMNbDuXEf/NPFrU4=; b=XEAtLQjInP0tqevD8S9T5KwM+P/Nn4LkJFQw0qsIQwoE95d24XTtEu+tI5s86CUWdY hh/br5XX0Lp/b3DZSqT7fO5PuivfPOKNOCwUrT479eeiBV1CLhhQCAx/kPxE3ehKXVvF flV9oQGjrmybY5nI/PTt9LmgIkVefKdbzlyMZJDEP4EtjRSZr5IwpsmdhT+4amOxb8x4 iDyIKvvFxojZ3iJGencmMDJ77CjGc8wxJv+px4OFio902YmgugJ0MDl1KOluQ8Vqcjv5 sSV2/DB5ZSj0QlTCViPQq94fGFs5Uoxc9d4obXJdy2k0epwqsfDWSuy8QDrWy0fIEtdv JEpg== X-Gm-Message-State: AOAM533A3qZZp8tFID2DSvKOAHkpt2CW29nhJrBFH5O66Xd852sC2s6N TJ5JbckIcOIWUeeAyi8h3SA0tA== X-Received: by 2002:a63:6f46:: with SMTP id k67mr2230777pgc.296.1602839911585; Fri, 16 Oct 2020 02:18:31 -0700 (PDT) Received: from hsinchu02.internal.sifive.com (114-34-229-221.HINET-IP.hinet.net. [114.34.229.221]) by smtp.gmail.com with ESMTPSA id h5sm2093263pfh.9.2020.10.16.02.18.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2020 02:18:31 -0700 (PDT) From: Zong Li To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, mturquette@baylibre.com, sboyd@kernel.org, yash.shah@sifive.com, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Zong Li Subject: [PATCH 0/4] clk: add driver for the SiFive FU740 Date: Fri, 16 Oct 2020 17:18:22 +0800 Message-Id: X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a driver for the SiFive FU740 PRCI IP block, which handles more clocks than FU540. These patches also refactor the original implementation by spliting the dependent-code of fu540 and fu740 respectively. Zong Li (4): clk: sifive: Extract prci core to common base clk: sifive: Use common name for prci configuration clk: sifive: Add a driver for the SiFive FU740 PRCI IP block clk: sifive: Refactor __prci_clock array by using macro arch/riscv/Kconfig.socs | 2 +- drivers/clk/sifive/Kconfig | 8 +- drivers/clk/sifive/Makefile | 5 +- drivers/clk/sifive/fu540-prci.c | 618 +----------------- drivers/clk/sifive/fu540-prci.h | 21 + drivers/clk/sifive/fu740-prci.c | 102 +++ drivers/clk/sifive/fu740-prci.h | 21 + drivers/clk/sifive/sifive-prci.c | 529 +++++++++++++++ drivers/clk/sifive/sifive-prci.h | 297 +++++++++ include/dt-bindings/clock/sifive-fu740-prci.h | 23 + 10 files changed, 1032 insertions(+), 594 deletions(-) create mode 100644 drivers/clk/sifive/fu540-prci.h create mode 100644 drivers/clk/sifive/fu740-prci.c create mode 100644 drivers/clk/sifive/fu740-prci.h create mode 100644 drivers/clk/sifive/sifive-prci.c create mode 100644 drivers/clk/sifive/sifive-prci.h create mode 100644 include/dt-bindings/clock/sifive-fu740-prci.h -- 2.28.0