From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796328599; b=cg3MQF8GaZXhXxuikl3OIFDH1VkVkTvV8KmyTLfqvISubm1vvX1ZE3H9KzHeQB3Vb5LT HA8Jg893j0ph7IIUbrbf2P46KrPCOvqFIBPpqS4TZEIh/NPGzrMaF28LVH4RIgHVeiqrQ xqB4nFiHD2uml/ErTF/p022kM3wiptp5OQx585nePsslmXRb0H7O7HBh/ymzkpdacHl2a JN54aehZtfRw9prLPabvPwyOVXN1/zTIkYDwiUXjASshScAywfNdqiJ2qIGA/2fWpMbL6 ofMBtnbdjkO5CouywGmpUWaaAwuoYhw9GPrOYxVWEeq52q2KOiapHtnzTl1MJM0K7Vg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796328599; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=Jc+SYz/Ku6xbYyt1dEGDDF+lOPl6NFfGbiQL+Vmdyig=; b=ibzTY5qs5NYAVEwFRm7Ewc2RCinBH57LRpaxGF7D160pdEA0PJDIq7+W1yyoqM9WawJR hXArbU8sp5MifWUsV7qiDpgR9EnTZRSictH65dgcF1JyK9bJqyTWzZ9nZI98gCKp627w3 1TqEAOfS/XMNrbgLZvwOxYUbeesNHHpG1dSpqB8960RJBLgKb+pGP89uASZNy79URRV/2 Z0hRQV7Epb++8E61zoEIX9shmCzjklXuv4Ho1NeK4bhPLXGc8fZiDAAgdaYxv0Umevh70 yv0j0T8Lw6cW2dOkhA+jlPwl78zjnm9SdbozAmrGc4Bf+AEMLgxqkrwUm5i6jeI0leg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass header.d=riscstar.com header.i=@riscstar.com header.a=rsa-sha256 header.s=google header.b=bPClRm7e; arc=none smtp.remote-ip=209.85.167.180 Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3156D60A2602 for ; Thu, 3 Dec 2026 20:09:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3156D60A2602 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar.com header.i=@riscstar.com header.a=rsa-sha256 header.s=google header.b=bPClRm7e Received: by mail-oi1-f180.google.com with SMTP id 5614622812f47-53ec92375d2so118531b6e.1 for ; Thu, 03 Dec 2026 12:09:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar.com; s=google; t=1796328597; x=1796933397; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Jc+SYz/Ku6xbYyt1dEGDDF+lOPl6NFfGbiQL+Vmdyig=; b=bPClRm7ev9GE9RUlLH3TZzj6n06c5cYpJTZrCnup93jmGI3WwkTWsYNb+zYAQFhZjk SqKPTmylg9rNZYymmc/tojpFsQAT50wvReV8rGGPe3dNu80kn8vkIYjLKXTZGhaRh9ZU /G5hlUEvc/DqKhIwLlLj5jGKsV4aUGNUMaoc22LmopGNlfw2tAvu1UMMv/fb5p3C6pwL WVSI4yMEmQndu0zyne+AUFDYjAyXSdUujh/71QwidzwON6P5YowXnmBBWVRCG2zjgTdi 6sWkeOuiM/UCzzw25d9wFkz8oBt1VOqILZbfVUyN8FA/ukdPo0/J8IWgfHHkvKcWDs+5 k8Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796328597; x=1796933397; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Jc+SYz/Ku6xbYyt1dEGDDF+lOPl6NFfGbiQL+Vmdyig=; b=OwDbWjjwb41wtS2n8ApigzUUpPkI3wNL4nCoplVAXn/IEWa0V95dIg1H0J7oUlbJpZ 8+EJgUBQKhPJtMFPAdkZLPLHaIJDmnpPaluywIDg0m+BZpGT7HeaK9R81QEgJF2O7N6O J83CoAAjRllC4dmQ3jibzpFvfH6rmofdMT+YsMo+Gjsl7khemjta56q0ZBfXTfLwvPXK OW5hxOQ//pRDiRfVKpOGgsezJs+gyKVYYwHZcoet/tT4lG6xZSmXPnx3AgBFmCSI5m8q nqHDp0KPoOMY8SKMQrdnHDs/i+BuowDZmycUkUh7Fi1GBMyyUk91P0+xSPwY+bmnRuip Y/Wg== X-Forwarded-Encrypted: i=1; AL+hErEm0s3lRQuVtMyIsLQkbgw5nVD/FUteQrb/b78zc4HPOQtrh+I83KakjFvlJ/0devrMKgO3ggMqzWrM@vger.kernel.org X-Gm-Message-State: APuU4Z8EvvKemd9HHsu3Ui7PK3SazZXe9FQBfawQaWoLg4443p/E2sUq QSd9HKsGWA7RoAK+vYVIT9gvT/12gs/oe5SeDN6FDU52OrKLFhcvi0SyLnRsHYV2rSg= X-Gm-Gg: AZFdTZdi9R7v8jWxzzOVlsTSs0ESjKNtUc5x5qoJh1RNqLlVb0g9zDPE9VSFKhn006E uMI9PnmXYgGvMKT7nb6ZE8+VLS7kEHM5vA1ImCvyKrfi/RL4HXgh74Dbmc2BwEMuxM53WAXMA6J vNySq3kmhuOLP1zObxYuxrwjCBGWpL6wzjZKwd12r2VJeYPzUItB694u+UmmA9Hc9/hCYW04cv8 hJb2YYaZ5EtrgFtD1PRZC4yYAJO5NmtoUGm8sQ6QUmaz0CzyVNfGOHvHGoKHetdeeGjsp24M/sT qTvKMy0GT3sRpD6qPknBZNxbBo44SnDdhcQ/axFbmcwG6WPvYC514G99gwCEjZ2HCczHBssmwgE jt0WuTqVSornRLLy9u7E320krWgQwJxNKXsNUr/ay/CnQ+YrFmI4zCjq26f+1ayp+SqWN82uS/T mb9uFfISs9F0cIf2NySW0u8WbwqH7ZUMNlhLAKVO53a1PZQY8QOjE0Cz0dslmKI2q4SAhVoOw5O Z0t5uK0kdO1r1dYvLw5R4X01x3EVhE8OZ7G0CxwbTCCk9HR8jOQA8mcOesOYE0yYsOCilxvIhSS t4hsbgclv1H/n/ibp1qKRIR6yeYGN5TYbvGCYg== X-Received: by 2002:a05:6808:3209:b0:572:d0fb:ae57 with SMTP id 5614622812f47-57a0af41a53mr49649030b6e.28.1796328597087; Thu, 03 Dec 2026 12:09:57 -0800 (PST) Received: from zippy.localdomain ([76.156.233.211]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4bd3008160dsm42590227fac.16.2026.12.03.12.09.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 12:09:56 -0800 (PST) From: Alex Elder To: sboyd@kernel.org, bmasney+clk@redhat.com, jbrunet+clk@baylibre.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, p.zabel@pengutronix.de, andersson@kernel.org, konradybcio@kernel.org, abelvesa@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org Cc: daniel@riscstar.com, mohd.anwar@oss.qualcomm.com, lorenzo.bianconi@oss.qualcomm.com, fabrice.gasnier@foss.st.com, alexandre.torgue@foss.st.com, marex@nabladev.com, changhuang.liang@starfivetech.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 3/4] clk: toshiba: introduce a TC9564 clock driver Date: Thu, 3 Dec 2026 14:09:46 -0600 Message-ID: <20261203200948.1595470-4-elder@riscstar.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261203200948.1595470-1-elder@riscstar.com> References: <20261203200948.1595470-1-elder@riscstar.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Define a new platform driver that manages clocks implemented by the Toshiba TC9564 SoC. There are 21 gate clocks that can be enabled and disabled, but currently only the clocks that are (or will soon be) used are defined to be controllable. The I2C and PCIE clocks marked as CRITICAL to prevent their state from ever changing. Two registers in an MMIO region manage the state of the clocks. The region is provided via a BAR on one of the PCI functions embedded in the TC9564 SoC. This driver creates an auxiliary device responsible for managing the reset controller implemented within the SoC. Definitions found in specify the interface between this driver and the reset auxiliary driver. Co-developed-by: Daniel Thompson Signed-off-by: Daniel Thompson Signed-off-by: Alex Elder --- v5: - There is now only one clk_hw_onecell_data structure tracking all clocks (and this is the only one used to add a clock hardware provider). - There is no longer a per-instance structure allocated for probed clock devices. All information needed during operation is either static or is set up during initialization. - Fixed rate clocks no longer have IDs. They are identified by their clock rate, which is unique (and based on a divider). - Gate clocks now specify the clock rate they need from their parent clock. The clk_hw pointer used in registeration is found based on that rate. - Initialization of the fixed and gate clocks are no longer encapsulated; instead, the probe function iterates over the clocks to be initialized, and a helper function for each type is called for each clock. - The reset device is now created using an auxiliary device helper function, avoiding duplicated code. - A few bits of dead code pointed out during review have been removed. MAINTAINERS | 1 + drivers/clk/Kconfig | 10 ++ drivers/clk/Makefile | 1 + drivers/clk/clk-tc9564.c | 326 +++++++++++++++++++++++++++++++++++++++ drivers/misc/Kconfig | 1 + 5 files changed, 339 insertions(+) create mode 100644 drivers/clk/clk-tc9564.c diff --git a/MAINTAINERS b/MAINTAINERS index 936d60a27dd3c..c6f26f750a5dc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -28798,6 +28798,7 @@ M: Alex Elder M: Daniel Thompson S: Maintained F: Documentation/devicetree/bindings/clock/toshiba,tc9564-clock.yaml +F: drivers/clk/clk-tc9564.c F: include/dt-bindings/clock/toshiba,tc9564.h TOSHIBA TC9564 PCI DRIVER diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 97db129f184ec..da547851c7c2b 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -186,6 +186,16 @@ config COMMON_CLK_CDCE706 help This driver supports TI CDCE706 programmable 3-PLL clock synthesizer. +config COMMON_CLK_TC9564 + tristate "Toshiba TC9564 clock support" + select AUXILIARY_BUS + imply RESET_TC9564 + help + This enables support for the clock controller embedded in the + Toshiba TC9564 SoC. It is also required to support the embedded + reset device, which is represented as an auxiliary device created + by the clock controller driver. + config COMMON_CLK_TPS68470 tristate "Clock Driver for TI TPS68470 PMIC" depends on I2C diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 99377a13ebc57..d67cfb6d623d3 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -111,6 +111,7 @@ obj-$(CONFIG_COMMON_CLK_SI570) += clk-si570.o obj-$(CONFIG_COMMON_CLK_SP7021) += clk-sp7021.o obj-$(CONFIG_COMMON_CLK_STM32F) += clk-stm32f4.o obj-$(CONFIG_COMMON_CLK_STM32H7) += clk-stm32h7.o +obj-$(CONFIG_COMMON_CLK_TC9564) += clk-tc9564.o obj-$(CONFIG_COMMON_CLK_TPS68470) += clk-tps68470.o obj-$(CONFIG_CLK_TWL6040) += clk-twl6040.o obj-$(CONFIG_CLK_TWL) += clk-twl.o diff --git a/drivers/clk/clk-tc9564.c b/drivers/clk/clk-tc9564.c new file mode 100644 index 0000000000000..fb429d2ffe039 --- /dev/null +++ b/drivers/clk/clk-tc9564.c @@ -0,0 +1,326 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/* + * Copyright (C) 2026 by RISCstar Solutions Corporation. All rights reserved. + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +/* + * Two registers implement the bits that control whether our clocks are + * enabled. These offsets are relative to the address space defined in + * devicetree. + */ +#define CLOCK0_OFFSET 0x0 +#define CLOCK1_OFFSET 0x8 + +/* + * A PLL driven by a 25 MHz input oscillator provides a clock source to + * the chip. A set of fixed rate clocks is derived from the PLL, and a + * set of gate clocks are children of the fixed rate clocks. + */ +#define CLOCK_COUNT (1 + FIXED_COUNT + GATE_COUNT) + +struct fixed_init { + const char *name; + unsigned int div; /* Rate is PLL rate divided by this */ +}; + +struct gate_init { + const char *name; + unsigned long parent_rate; + u8 offset; /* Control register offset (0x0 or 0x8) */ + u8 bit; /* Bit in the control register (0-31) */ + bool critical; +}; + +/* Device IDs used for auxiliary bus reset devices */ +static DEFINE_IDA(reset_ids); + +static const struct fixed_init fixed_init[] = { + { .name = "312.5MHz", .div = 4, }, + { .name = "250MHz", .div = 5, }, + { .name = "125MHz", .div = 10, }, + { .name = "62.5MHz", .div = 20, }, +}; +#define FIXED_COUNT ARRAY_SIZE(fixed_init) + +static const struct gate_init gate_init[] = { + [TC9564_CLK_MAC0_TX] = { + .name = "MAC0-TX", + .parent_rate = 312500000, + .offset = CLOCK0_OFFSET, + .bit = 7, + }, + [TC9564_CLK_PCIE] = { + .name = "PCIe", + .parent_rate = 250000000, + .offset = CLOCK0_OFFSET, + .bit = 9, + .critical = true, + }, + [TC9564_CLK_I2C] = { + .name = "i2c", + .parent_rate = 62500000, + .offset = CLOCK0_OFFSET, + .bit = 12, + .critical = true, + }, + [TC9564_CLK_MAC0_RX] = { + .name = "MAC0-RX", + .parent_rate = 312500000, + .offset = CLOCK0_OFFSET, + .bit = 14, + }, + [TC9564_CLK_MSIGEN] = { + .name = "msigen", + .parent_rate = 125000000, + .offset = CLOCK0_OFFSET, + .bit = 18, + }, + [TC9564_CLK_MAC0_125M] = { + .name = "MAC0-125MHz", + .parent_rate = 125000000, + .offset = CLOCK0_OFFSET, + .bit = 29, + }, + [TC9564_CLK_MAC0_ALL] = { + .name = "MAC0-ALL", + .parent_rate = 250000000, + .offset = CLOCK0_OFFSET, + .bit = 31, + }, + [TC9564_CLK_MAC1_TX] = { + .name = "MAC1-TX", + .parent_rate = 312500000, + .offset = CLOCK1_OFFSET, + .bit = 7, + }, + [TC9564_CLK_MAC1_RX] = { + .name = "MAC1-RX", + .parent_rate = 312500000, + .offset = CLOCK1_OFFSET, + .bit = 14, + }, + [TC9564_CLK_MAC1_125M] = { + .name = "MAC1-125MHz", + .parent_rate = 125000000, + .offset = CLOCK1_OFFSET, + .bit = 29, + }, + [TC9564_CLK_MAC1_ALL] = { + .name = "MAC1-ALL", + .parent_rate = 250000000, + .offset = CLOCK1_OFFSET, + .bit = 31, + }, +}; +#define GATE_COUNT ARRAY_SIZE(gate_init) + +/* Caller must free the returned pointer */ +static const char *clock_name_alloc(struct device *dev, const char *name) +{ + return kasprintf(GFP_KERNEL, "%s-%s", dev_name(dev), name); +} + +/* Initialize the PLL (parent is the input oscillator) */ +static struct clk_hw *pll_register(struct device *dev) +{ + const char *name __free(kfree) = clock_name_alloc(dev, "pll"); + + if (!name) + return ERR_PTR(-ENOMEM); + + return devm_clk_hw_register_fixed_factor_index(dev, name, 0, 0, 50, 1); +} + +static struct clk_hw *fixed_clock_register(struct device *dev, + struct clk_hw *pll_hw, + const struct fixed_init *finit) +{ + const char *name __free(kfree) = clock_name_alloc(dev, finit->name); + + if (!name) + return ERR_PTR(-ENOMEM); + + return devm_clk_hw_register_fixed_factor_parent_hw(dev, name, pll_hw, + 0, 1, finit->div); +} + +/* Return the clk_hw pointer for a fixed clock having the given rate */ +static struct clk_hw *fixed_hw_find_by_rate(struct clk_hw **fixed_hws, + unsigned long rate) +{ + for (u32 i = 0; i < FIXED_COUNT; i++) + if (clk_hw_get_rate(fixed_hws[i]) == rate) + return fixed_hws[i]; + + return NULL; +} + +static struct clk_hw *gate_clock_register(struct device *dev, + struct clk_hw **fixed_hws, + const struct gate_init *ginit, + void __iomem *regs) +{ + const char *name __free(kfree) = clock_name_alloc(dev, ginit->name); + unsigned long flags = ginit->critical ? CLK_IS_CRITICAL : 0; + void __iomem *reg = regs + ginit->offset; + struct clk_hw *parent_hw; + + if (!name) + return ERR_PTR(-ENOMEM); + + /* Each gate clock's parent is one of the fixed rate clocks */ + parent_hw = fixed_hw_find_by_rate(fixed_hws, ginit->parent_rate); + if (!parent_hw) { + dev_err(dev, "failed to find %lu parent\n", ginit->parent_rate); + + return ERR_PTR(-EINVAL); + } + + return devm_clk_hw_register_gate_parent_hw(dev, name, parent_hw, flags, + reg, ginit->bit, 0, NULL); +} + +static struct clk_hw * +gate_of_clk_hw_onecell_get(struct of_phandle_args *clkspec, void *data) +{ + struct clk_hw **gate_hws = data; + u32 id = clkspec->args[0]; + + if (id < GATE_COUNT) + return gate_hws[id]; + + pr_err("%s: invalid clock ID %u\n", __func__, id); + + return ERR_PTR(-EINVAL); +} + +static void reset_adev_free(void *data) +{ + struct auxiliary_device *adev = data; + + ida_free(&reset_ids, adev->id); + kfree(dev_get_platdata(&adev->dev)); +} + +/* Create the TC9564 reset auxiliary device; called by probe */ +static int devm_reset_register(struct device *dev, void __iomem *regs) +{ + struct tc9564_aux_data *aux_data; + struct auxiliary_device *adev; + int id; + + aux_data = kzalloc_obj(*aux_data); + if (!aux_data) + return -ENOMEM; + aux_data->regs = regs; + + id = ida_alloc(&reset_ids, GFP_KERNEL); + if (id < 0) + return dev_err_probe(dev, id, "failed to get reset id\n"); + + adev = __devm_auxiliary_device_create(dev, TC9564_CLK_MODNAME, + TC9564_RESET_DEV_NAME, + aux_data, id); + if (!adev) { + ida_free(&reset_ids, id); + kfree(aux_data); + return -ENOMEM; + } + + return devm_add_action_or_reset(dev, reset_adev_free, adev); +} + +static int tc9564_clk_probe(struct platform_device *pdev) +{ + struct clk_hw_onecell_data *clock_data; + struct device *dev = &pdev->dev; + const struct fixed_init *finit; + const struct gate_init *ginit; + struct clk_hw **fixed_hws; + struct clk_hw **gate_hws; + struct clk_hw **clk_hws; + struct clk_hw *pll_hw; + void __iomem *regs; + struct clk_hw *hw; + int ret; + u32 i; + + if (!dev_of_node(dev)) + return dev_err_probe(dev, -EINVAL, "no devicetree node\n"); + + regs = devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(regs)) + return dev_err_probe(dev, PTR_ERR(regs), + "failed to map registers\n"); + + clock_data = devm_kzalloc_flex(dev, *clock_data, hws, CLOCK_COUNT); + if (!clock_data) + return -ENOMEM; + clock_data->num = CLOCK_COUNT; + + clk_hws = &clock_data->hws[0]; + + pll_hw = pll_register(dev); + if (IS_ERR(pll_hw)) + return dev_err_probe(dev, PTR_ERR(pll_hw), + "failed to register PLL\n"); + *clk_hws++ = pll_hw; + + fixed_hws = clk_hws; + for (i = 0, finit = &fixed_init[0]; i < FIXED_COUNT; i++, finit++) { + hw = fixed_clock_register(dev, pll_hw, finit); + if (IS_ERR(hw)) + return dev_err_probe(dev, PTR_ERR(hw), + "failed to register fixed %s\n", + finit->name); + *clk_hws++ = hw; + } + + gate_hws = clk_hws; + for (i = 0, ginit = &gate_init[0]; i < GATE_COUNT; i++, ginit++) { + hw = gate_clock_register(dev, fixed_hws, ginit, regs); + if (IS_ERR(hw)) + return dev_err_probe(dev, PTR_ERR(hw), + "failed to register gate %s\n", + ginit->name); + *clk_hws++ = hw; + } + + ret = devm_of_clk_add_hw_provider(dev, gate_of_clk_hw_onecell_get, + gate_hws); + if (ret) + return dev_err_probe(dev, ret, + "failed to add clock provider\n"); + + return devm_reset_register(dev, regs); +} + +static const struct of_device_id tc9564_clock_match[] = { + { .compatible = "toshiba,tc9564-clock", }, + { } +}; +MODULE_DEVICE_TABLE(of, tc9564_clock_match); + +static struct platform_driver tc9564_clk_driver = { + .probe = tc9564_clk_probe, + .driver = { + .name = KBUILD_MODNAME, + .of_match_table = tc9564_clock_match, + }, +}; +module_platform_driver(tc9564_clk_driver); + +MODULE_DESCRIPTION("Toshiba TC9564 Clock Driver"); +MODULE_LICENSE("GPL"); diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index c40e89cc57243..391d0ba79c96f 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -574,6 +574,7 @@ config TC9564_PCI tristate "Toshiba TC9564 PCI function support" depends on PCI_DYNAMIC_OF_NODES depends on PCI_QUIRKS + imply COMMON_CLK_TC9564 default m help This enables support for two PCI functions implemented by the -- 2.53.0