Skip to contentSkip to conversation

reenable pc speaker driver for ppc and ppc64

PATCH Applied Olaf Hering 2 participants 2 messages Jul 23, 2004 – Jul 27, 2004 Input drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 reenable pc speaker driver for ppc and ppc64

The ppc PReP and CHRP boards have PC speaker hardware. A recent patch disabled that for many archs, also for ppc. But the driver works fine here. An asm header was missing, I just copied another version.

drivers/input/misc/Kconfig +1 -1
diff -purN linux-2.6.7/drivers/input/misc/Kconfig linux-2.6.8-rc2/drivers/input/misc/Kconfig
@@ -14,7 +14,7 @@ config INPUT_MISC
 
 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.
include/asm-ppc/8253pit.h +10 -0
diff -purN linux-2.6.7/include/asm-ppc/8253pit.h linux-2.6.8-rc2/include/asm-ppc/8253pit.h
@@ -0,0 +1,10 @@
+/*
+ * 8253/8254 Programmable Interval Timer
+ */
+
+#ifndef _8253PIT_H
+#define _8253PIT_H
+
+#define PIT_TICK_RATE 	1193182UL
+
+#endif
include/asm-ppc64/8253pit.h +10 -0
diff -purN linux-2.6.7/include/asm-ppc64/8253pit.h linux-2.6.8-rc2/include/asm-ppc64/8253pit.h
@@ -0,0 +1,10 @@
+/*
+ * 8253/8254 Programmable Interval Timer
+ */
+
+#ifndef _8253PIT_H
+#define _8253PIT_H
+
+#define PIT_TICK_RATE 	1193182UL
+
+#endif
Signature · 3 lines
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG
#1 lore raw
Quoted 6 lines · Olaf Hering

The ppc PReP and CHRP boards have PC speaker hardware. A recent patch disabled that for many archs, also for ppc. But the driver works fine here. An asm header was missing, I just copied another version.

Thanks, applied.

Quoted 47 lines

diff -purN linux-2.6.7/drivers/input/misc/Kconfig linux-2.6.8-rc2/drivers/input/misc/Kconfig

drivers/input/misc/Kconfig +1 -1
@@ -14,7 +14,7 @@ config INPUT_MISC
 
 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 -purN linux-2.6.7/include/asm-ppc/8253pit.h linux-2.6.8-rc2/include/asm-ppc/8253pit.h

include/asm-ppc/8253pit.h +10 -0
@@ -0,0 +1,10 @@
+/*
+ * 8253/8254 Programmable Interval Timer
+ */
+
+#ifndef _8253PIT_H
+#define _8253PIT_H
+
+#define PIT_TICK_RATE 	1193182UL
+
+#endif

diff -purN linux-2.6.7/include/asm-ppc64/8253pit.h linux-2.6.8-rc2/include/asm-ppc64/8253pit.h

include/asm-ppc64/8253pit.h +10 -0
@@ -0,0 +1,10 @@
+/*
+ * 8253/8254 Programmable Interval Timer
+ */
+
+#ifndef _8253PIT_H
+#define _8253PIT_H
+
+#define PIT_TICK_RATE 	1193182UL
+
+#endif
Signature · 4 lines
-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG
Signature · 2 lines
Vojtech Pavlik
SuSE Labs, SuSE CR