Commit 71c568c00026f082ca16980e2d9bc506e7d3b145

Authored by Maxime Ripard
Committed by Daniel Lezcano
1 parent 9c9b781804

clocksource: sun4i: Select CLKSRC_MMIO

The Allwinner SoCs timer use the clocksource MMIO functions. We thus
need to select them in Kconfig.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

Showing 1 changed file with 1 additions and 0 deletions Inline Diff

drivers/clocksource/Kconfig
1 config CLKSRC_OF 1 config CLKSRC_OF
2 bool 2 bool
3 3
4 config CLKSRC_I8253 4 config CLKSRC_I8253
5 bool 5 bool
6 6
7 config CLKEVT_I8253 7 config CLKEVT_I8253
8 bool 8 bool
9 9
10 config I8253_LOCK 10 config I8253_LOCK
11 bool 11 bool
12 12
13 config CLKBLD_I8253 13 config CLKBLD_I8253
14 def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK 14 def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK
15 15
16 config CLKSRC_MMIO 16 config CLKSRC_MMIO
17 bool 17 bool
18 18
19 config DW_APB_TIMER 19 config DW_APB_TIMER
20 bool 20 bool
21 21
22 config DW_APB_TIMER_OF 22 config DW_APB_TIMER_OF
23 bool 23 bool
24 select DW_APB_TIMER 24 select DW_APB_TIMER
25 select CLKSRC_OF 25 select CLKSRC_OF
26 26
27 config ARMADA_370_XP_TIMER 27 config ARMADA_370_XP_TIMER
28 bool 28 bool
29 select CLKSRC_OF 29 select CLKSRC_OF
30 30
31 config ORION_TIMER 31 config ORION_TIMER
32 select CLKSRC_OF 32 select CLKSRC_OF
33 select CLKSRC_MMIO 33 select CLKSRC_MMIO
34 bool 34 bool
35 35
36 config SUN4I_TIMER 36 config SUN4I_TIMER
37 select CLKSRC_MMIO
37 bool 38 bool
38 39
39 config VT8500_TIMER 40 config VT8500_TIMER
40 bool 41 bool
41 42
42 config CADENCE_TTC_TIMER 43 config CADENCE_TTC_TIMER
43 bool 44 bool
44 45
45 config CLKSRC_NOMADIK_MTU 46 config CLKSRC_NOMADIK_MTU
46 bool 47 bool
47 depends on (ARCH_NOMADIK || ARCH_U8500) 48 depends on (ARCH_NOMADIK || ARCH_U8500)
48 select CLKSRC_MMIO 49 select CLKSRC_MMIO
49 help 50 help
50 Support for Multi Timer Unit. MTU provides access 51 Support for Multi Timer Unit. MTU provides access
51 to multiple interrupt generating programmable 52 to multiple interrupt generating programmable
52 32-bit free running decrementing counters. 53 32-bit free running decrementing counters.
53 54
54 config CLKSRC_NOMADIK_MTU_SCHED_CLOCK 55 config CLKSRC_NOMADIK_MTU_SCHED_CLOCK
55 bool 56 bool
56 depends on CLKSRC_NOMADIK_MTU 57 depends on CLKSRC_NOMADIK_MTU
57 help 58 help
58 Use the Multi Timer Unit as the sched_clock. 59 Use the Multi Timer Unit as the sched_clock.
59 60
60 config CLKSRC_DBX500_PRCMU 61 config CLKSRC_DBX500_PRCMU
61 bool "Clocksource PRCMU Timer" 62 bool "Clocksource PRCMU Timer"
62 depends on UX500_SOC_DB8500 63 depends on UX500_SOC_DB8500
63 default y 64 default y
64 help 65 help
65 Use the always on PRCMU Timer as clocksource 66 Use the always on PRCMU Timer as clocksource
66 67
67 config CLKSRC_DBX500_PRCMU_SCHED_CLOCK 68 config CLKSRC_DBX500_PRCMU_SCHED_CLOCK
68 bool "Clocksource PRCMU Timer sched_clock" 69 bool "Clocksource PRCMU Timer sched_clock"
69 depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK) 70 depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK)
70 default y 71 default y
71 help 72 help
72 Use the always on PRCMU Timer as sched_clock 73 Use the always on PRCMU Timer as sched_clock
73 74
74 config CLKSRC_EFM32 75 config CLKSRC_EFM32
75 bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32 76 bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
76 depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST) 77 depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
77 default ARCH_EFM32 78 default ARCH_EFM32
78 help 79 help
79 Support to use the timers of EFM32 SoCs as clock source and clock 80 Support to use the timers of EFM32 SoCs as clock source and clock
80 event device. 81 event device.
81 82
82 config ARM_ARCH_TIMER 83 config ARM_ARCH_TIMER
83 bool 84 bool
84 select CLKSRC_OF if OF 85 select CLKSRC_OF if OF
85 86
86 config ARM_ARCH_TIMER_EVTSTREAM 87 config ARM_ARCH_TIMER_EVTSTREAM
87 bool "Support for ARM architected timer event stream generation" 88 bool "Support for ARM architected timer event stream generation"
88 default y if ARM_ARCH_TIMER 89 default y if ARM_ARCH_TIMER
89 help 90 help
90 This option enables support for event stream generation based on 91 This option enables support for event stream generation based on
91 the ARM architected timer. It is used for waking up CPUs executing 92 the ARM architected timer. It is used for waking up CPUs executing
92 the wfe instruction at a frequency represented as a power-of-2 93 the wfe instruction at a frequency represented as a power-of-2
93 divisor of the clock rate. 94 divisor of the clock rate.
94 The main use of the event stream is wfe-based timeouts of userspace 95 The main use of the event stream is wfe-based timeouts of userspace
95 locking implementations. It might also be useful for imposing timeout 96 locking implementations. It might also be useful for imposing timeout
96 on wfe to safeguard against any programming errors in case an expected 97 on wfe to safeguard against any programming errors in case an expected
97 event is not generated. 98 event is not generated.
98 This must be disabled for hardware validation purposes to detect any 99 This must be disabled for hardware validation purposes to detect any
99 hardware anomalies of missing events. 100 hardware anomalies of missing events.
100 101
101 config ARM_GLOBAL_TIMER 102 config ARM_GLOBAL_TIMER
102 bool 103 bool
103 select CLKSRC_OF if OF 104 select CLKSRC_OF if OF
104 help 105 help
105 This options enables support for the ARM global timer unit 106 This options enables support for the ARM global timer unit
106 107
107 config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK 108 config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
108 bool 109 bool
109 depends on ARM_GLOBAL_TIMER 110 depends on ARM_GLOBAL_TIMER
110 default y 111 default y
111 help 112 help
112 Use ARM global timer clock source as sched_clock 113 Use ARM global timer clock source as sched_clock
113 114
114 config CLKSRC_METAG_GENERIC 115 config CLKSRC_METAG_GENERIC
115 def_bool y if METAG 116 def_bool y if METAG
116 help 117 help
117 This option enables support for the Meta per-thread timers. 118 This option enables support for the Meta per-thread timers.
118 119
119 config CLKSRC_EXYNOS_MCT 120 config CLKSRC_EXYNOS_MCT
120 def_bool y if ARCH_EXYNOS 121 def_bool y if ARCH_EXYNOS
121 help 122 help
122 Support for Multi Core Timer controller on Exynos SoCs. 123 Support for Multi Core Timer controller on Exynos SoCs.
123 124
124 config CLKSRC_SAMSUNG_PWM 125 config CLKSRC_SAMSUNG_PWM
125 bool 126 bool
126 help 127 help
127 This is a new clocksource driver for the PWM timer found in 128 This is a new clocksource driver for the PWM timer found in
128 Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver 129 Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
129 for all devicetree enabled platforms. This driver will be 130 for all devicetree enabled platforms. This driver will be
130 needed only on systems that do not have the Exynos MCT available. 131 needed only on systems that do not have the Exynos MCT available.
131 132
132 config VF_PIT_TIMER 133 config VF_PIT_TIMER
133 bool 134 bool
134 help 135 help
135 Support for Period Interrupt Timer on Freescale Vybrid Family SoCs. 136 Support for Period Interrupt Timer on Freescale Vybrid Family SoCs.
136 137