Skip to content

Commit 56a34b0

Browse files
committed
ARM: versatile: Make plat-versatile clock optional
... in preparation for common clock coming for Integrator and Versatile Express. Based on Linus Walleij's "ARM: integrator: convert to common clock" patch. Signed-off-by: Pawel Moll <pawel.moll@arm.com>
1 parent d927daf commit 56a34b0

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎arch/arm/Kconfig‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ config ARCH_INTEGRATOR
260260
select ICST
261261
select GENERIC_CLOCKEVENTS
262262
select PLAT_VERSATILE
263+
select PLAT_VERSATILE_CLOCK
263264
select PLAT_VERSATILE_FPGA_IRQ
264265
select NEED_MACH_IO_H
265266
select NEED_MACH_MEMORY_H
@@ -277,6 +278,7 @@ config ARCH_REALVIEW
277278
select GENERIC_CLOCKEVENTS
278279
select ARCH_WANT_OPTIONAL_GPIOLIB
279280
select PLAT_VERSATILE
281+
select PLAT_VERSATILE_CLOCK
280282
select PLAT_VERSATILE_CLCD
281283
select ARM_TIMER_SP804
282284
select GPIO_PL061 if GPIOLIB
@@ -295,6 +297,7 @@ config ARCH_VERSATILE
295297
select ARCH_WANT_OPTIONAL_GPIOLIB
296298
select NEED_MACH_IO_H if PCI
297299
select PLAT_VERSATILE
300+
select PLAT_VERSATILE_CLOCK
298301
select PLAT_VERSATILE_CLCD
299302
select PLAT_VERSATILE_FPGA_IRQ
300303
select ARM_TIMER_SP804
@@ -314,6 +317,7 @@ config ARCH_VEXPRESS
314317
select ICST
315318
select NO_IOPORT
316319
select PLAT_VERSATILE
320+
select PLAT_VERSATILE_CLOCK
317321
select PLAT_VERSATILE_CLCD
318322
help
319323
This enables support for the ARM Ltd Versatile Express boards.

‎arch/arm/plat-versatile/Kconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
if PLAT_VERSATILE
22

3+
config PLAT_VERSATILE_CLOCK
4+
bool
5+
36
config PLAT_VERSATILE_CLCD
47
bool
58

‎arch/arm/plat-versatile/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
obj-y := clock.o
1+
obj-$(CONFIG_PLAT_VERSATILE_CLOCK) += clock.o
22
obj-$(CONFIG_PLAT_VERSATILE_CLCD) += clcd.o
33
obj-$(CONFIG_PLAT_VERSATILE_FPGA_IRQ) += fpga-irq.o
44
obj-$(CONFIG_PLAT_VERSATILE_LEDS) += leds.o

0 commit comments

Comments
 (0)