Skip to content

Commit 8602a80

Browse files
krzkdlezcano
authored andcommitted
clocksource/drivers/exynosy: Depend on sub-architecture for Exynos MCT and Samsung PWM
The Exynos MCT and Samsung PWM Timer clocksource drivers are not usable on anything else than Samsung Exynos, S3C or S5P SoC platforms. These are integral parts of a SoC. Even though the drivers are not user selectable, still document the hardware architecture explicitly with depends on ARCH_EXYNOS and others. This also serves a purpose of documenting use-case, if someone ever wonders whether to select the driver for his platform. No functional change, because drivers are already selected by the platform described in depends. We follow similar approach also for other SoC-specific drivers. Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent 32cf6d0 commit 8602a80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/clocksource/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,14 @@ config ATMEL_TCB_CLKSRC
417417
config CLKSRC_EXYNOS_MCT
418418
bool "Exynos multi core timer driver" if COMPILE_TEST
419419
depends on ARM || ARM64
420+
depends on ARCH_EXYNOS || COMPILE_TEST
420421
help
421422
Support for Multi Core Timer controller on Exynos SoCs.
422423

423424
config CLKSRC_SAMSUNG_PWM
424425
bool "PWM timer driver for Samsung S3C, S5P" if COMPILE_TEST
425426
depends on HAS_IOMEM
427+
depends on ARCH_EXYNOS || ARCH_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210 || COMPILE_TEST
426428
help
427429
This is a new clocksource driver for the PWM timer found in
428430
Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver

0 commit comments

Comments
 (0)