From patchwork Wed Sep 2 06:48:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhangqing X-Patchwork-Id: 11749937 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C844214E3 for ; Wed, 2 Sep 2020 06:56:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A6F972075D for ; Wed, 2 Sep 2020 06:56:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726310AbgIBG4D (ORCPT ); Wed, 2 Sep 2020 02:56:03 -0400 Received: from lucky1.263xmail.com ([211.157.147.130]:51902 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726140AbgIBG4D (ORCPT ); Wed, 2 Sep 2020 02:56:03 -0400 X-Greylist: delayed 419 seconds by postgrey-1.27 at vger.kernel.org; Wed, 02 Sep 2020 02:56:02 EDT Received: from localhost (unknown [192.168.167.32]) by lucky1.263xmail.com (Postfix) with ESMTP id AED9BCB943; Wed, 2 Sep 2020 14:48:56 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P11834T140500898137856S1599029334223657_; Wed, 02 Sep 2020 14:48:55 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <6dae17ab0ed8dc6b22749616600e834d> X-RL-SENDER: zhangqing@rock-chips.com X-SENDER: zhangqing@rock-chips.com X-LOGIN-NAME: zhangqing@rock-chips.com X-FST-TO: heiko@sntech.de X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 From: Elaine Zhang To: heiko@sntech.de Cc: mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, xxx@rock-chips.com, xf@rock-chips.com, huangtao@rock-chips.com, kever.yang@rock-chips.com, Elaine Zhang Subject: [PATCH v1 0/6] clk: rockchip: Support module build Date: Wed, 2 Sep 2020 14:48:41 +0800 Message-Id: <20200902064847.18881-1-zhangqing@rock-chips.com> X-Mailer: git-send-email 2.17.1 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Export some APIs for module drivers. Fix the clock config to support module build. Fix the clk driver init, add module author, description and license to support building RK3399 SoC clock driver as module. Elaine Zhang (6): clk: rockchip: Use clk_hw_register_composite instead of clk_register_composite calls clk: rockchip: Export rockchip_clk_register_ddrclk() clk: rockchip: Export rockchip_register_softrst() clk: rockchip: Export some clock common APIs for module drivers clk: rockchip: fix the clk config to support module build clk: rockchip: rk3399: Support module build drivers/clk/Kconfig | 1 + drivers/clk/rockchip/Kconfig | 78 ++++++++++++++++++++++ drivers/clk/rockchip/Makefile | 42 ++++++------ drivers/clk/rockchip/clk-ddr.c | 1 + drivers/clk/rockchip/clk-half-divider.c | 12 ++-- drivers/clk/rockchip/clk-rk3399.c | 40 ++++++++++++ drivers/clk/rockchip/clk.c | 87 ++++++++++++++----------- drivers/clk/rockchip/softrst.c | 7 +- 8 files changed, 203 insertions(+), 65 deletions(-) create mode 100644 drivers/clk/rockchip/Kconfig