MIPS: pistachio: Allow to enable the external timer based clocksource
authorEzequiel Garcia <[email protected]>
Thu, 6 Aug 2015 11:22:43 +0000 (12:22 +0100)
committerRalf Baechle <[email protected]>
Thu, 3 Sep 2015 10:08:07 +0000 (12:08 +0200)
This commit introduces a new config, so the user can choose to enable
the General Purpose Timer based clocksource. This option is required
to have CPUFreq support.

Signed-off-by: Ezequiel Garcia <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: Daniel Lezcano <[email protected]>
Cc: [email protected]
Cc: Thomas Gleixner <[email protected]>
Cc: Andrew Bresticker <[email protected]>
Cc: James Hartley <[email protected]>
Cc: Govindraj Raja <[email protected]>
Cc: Damien Horsley <[email protected]>
Cc: James Hogan <[email protected]>
Cc: Ezequiel Garcia <[email protected]>
Cc: Ezequiel Garcia <[email protected]>
Patchwork: http://patchwork.linux-mips.org/patch/10887/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/Kconfig
arch/mips/pistachio/Kconfig [new file with mode: 0644]

index 8083ef9c80d4996f6da3e5d775312b8b4def6a6d..233d338c24b4a67a367128c2fb8afaec0c2e463f 100644 (file)
@@ -951,6 +951,7 @@ source "arch/mips/jazz/Kconfig"
 source "arch/mips/jz4740/Kconfig"
 source "arch/mips/lantiq/Kconfig"
 source "arch/mips/lasat/Kconfig"
+source "arch/mips/pistachio/Kconfig"
 source "arch/mips/pmcs-msp71xx/Kconfig"
 source "arch/mips/ralink/Kconfig"
 source "arch/mips/sgi-ip27/Kconfig"
diff --git a/arch/mips/pistachio/Kconfig b/arch/mips/pistachio/Kconfig
new file mode 100644 (file)
index 0000000..97731ea
--- /dev/null
@@ -0,0 +1,13 @@
+config PISTACHIO_GPTIMER_CLKSRC
+       bool "Enable General Purpose Timer based clocksource"
+       depends on MACH_PISTACHIO
+       select CLKSRC_PISTACHIO
+       select MIPS_EXTERNAL_TIMER
+       help
+         This option enables a clocksource driver based on a Pistachio
+         SoC General Purpose external timer.
+
+         If you want to enable the CPUFreq, you need to enable
+         this option.
+
+         If you don't want to enable CPUFreq, you can leave this disabled.