From: Guillaume La Roque <glaroque@baylibre.com>
To: Daniel Lezcano <daniel.lezcano@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>
Cc: Nishanth Menon <nm@ti.com>, Andrew Davis <afd@ti.com>,
mkorpershoek@baylibre.com, linux-kernel@vger.kernel.org,
Guillaume La Roque <glaroque@baylibre.com>
Subject: [PATCH] clocksource/drivers/timer-ti-dm: add module build support
Date: Thu, 20 Feb 2025 15:31:55 +0100 [thread overview]
Message-ID: <20250220-timer-dm-v1-1-64b6dab5f4a5@baylibre.com> (raw)
Add missing MODULE_LICENSE variable and convert bool to tristate in
Kconfig to be able to build driver in module.
By default this driver was set at y when ARCH_K3=y.
Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
---
Enable possibility to build in module timer-ti-dm driver needed in
Android context and Android Generic Kernel Image support.
I know any other clicksource driver support module build but i do test on AM62X and
AM62P EVM board and i able to use this driver and test it with PWM.
By default this driver will be always enable in bultin when ARCH_K3=y so
no impact for other TI SoC.
---
drivers/clocksource/Kconfig | 4 ++--
drivers/clocksource/timer-ti-dm.c | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 487c85259967..6ba4b2c48a76 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -57,8 +57,8 @@ config DIGICOLOR_TIMER
Enables the support for the digicolor timer driver.
config OMAP_DM_TIMER
- bool "OMAP dual-mode timer driver" if ARCH_K3 || COMPILE_TEST
- default y if ARCH_K3
+ tristate "OMAP dual-mode timer driver" if ARCH_K3 || COMPILE_TEST
+ default ARCH_K3
select TIMER_OF
help
Enables the support for the TI dual-mode timer driver.
diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c
index e9e32df6b566..c6183e1fdb5c 100644
--- a/drivers/clocksource/timer-ti-dm.c
+++ b/drivers/clocksource/timer-ti-dm.c
@@ -1307,3 +1307,4 @@ module_platform_driver(omap_dm_timer_driver);
MODULE_DESCRIPTION("OMAP Dual-Mode Timer Driver");
MODULE_AUTHOR("Texas Instruments Inc");
+MODULE_LICENSE("GPL");
---
base-commit: 87a132e73910e8689902aed7f2fc229d6908383b
change-id: 20250220-timer-dm-9e71a9b5abd7
Best regards,
--
Guillaume La Roque <glaroque@baylibre.com>
next reply other threads:[~2025-02-20 14:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-20 14:31 Guillaume La Roque [this message]
2025-03-05 9:43 ` Daniel Lezcano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250220-timer-dm-v1-1-64b6dab5f4a5@baylibre.com \
--to=glaroque@baylibre.com \
--cc=afd@ti.com \
--cc=daniel.lezcano@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mkorpershoek@baylibre.com \
--cc=nm@ti.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®