[PATCH 45/47] Re-add PC Speaker support for PPC

Vojtech Pavlik
2004-07-29T14:11:26Z

ChangeSet@1.1840.1.90, 2004-07-27 14:46:36+02:00, olh@suse.de
input: Re-add PC Speaker support for PPC

Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>

drivers/input/misc/Kconfig | 2 +-
include/asm-ppc/8253pit.h | 10 ++++++++++
include/asm-ppc64/8253pit.h | 10 ++++++++++
3 files changed, 21 insertions(+), 1 deletion(-)

===================================================================

diff -Nru a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig
--- a/drivers/input/misc/Kconfig Thu Jul 29 14:38:33 2004
+++ b/drivers/input/misc/Kconfig Thu Jul 29 14:38:33 2004
@@ -14,7 +14,7 @@

config INPUT_PCSPKR
tristate "PC Speaker support"
- depends on (ALPHA || X86 || X86_64 || MIPS) && INPUT && INPUT_MISC
+ depends on (ALPHA || X86 || X86_64 || MIPS || PPC_PREP || PPC_CHRP || PPC_PSERIES) && INPUT && INPUT_MISC
help
Say Y here if you want the standard PC Speaker to be used for
bells and whistles.
diff -Nru a/include/asm-ppc/8253pit.h b/include/asm-ppc/8253pit.h
--- /dev/null Wed Dec 31 16:00:00 1969
+++ b/include/asm-ppc/8253pit.h Thu Jul 29 14:38:33 2004
@@ -0,0 +1,10 @@
+/*
+ * 8253/8254 Programmable Interval Timer
+ */
+
+#ifndef _8253PIT_H
+#define _8253PIT_H
+
+#define PIT_TICK_RATE 1193182UL
+
+#endif
diff -Nru a/include/asm-ppc64/8253pit.h b/include/asm-ppc64/8253pit.h
--- /dev/null Wed Dec 31 16:00:00 1969
+++ b/include/asm-ppc64/8253pit.h Thu Jul 29 14:38:33 2004
@@ -0,0 +1,10 @@
+/*
+ * 8253/8254 Programmable Interval Timer
+ */
+
+#ifndef _8253PIT_H
+#define _8253PIT_H
+
+#define PIT_TICK_RATE 1193182UL
+
+#endif