mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] reenable pc speaker driver for ppc and ppc64
@ 2004-07-23 16:49 Olaf Hering
  2004-07-27 12:46 ` Vojtech Pavlik
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2004-07-23 16:49 UTC (permalink / raw)
  To: Andrew Morton, Vojtech Pavlik; +Cc: linux-kernel, Olaf Hering, linuxppc-dev


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.

Signed-off-by: Olaf Hering <olh@suse.de>

diff -purN linux-2.6.7/drivers/input/misc/Kconfig linux-2.6.8-rc2/drivers/input/misc/Kconfig
--- linux-2.6.7/drivers/input/misc/Kconfig	2004-07-23 18:30:34.845608638 +0200
+++ linux-2.6.8-rc2/drivers/input/misc/Kconfig	2004-07-23 17:45:16.519034884 +0200
@@ -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
--- linux-2.6.7/include/asm-ppc/8253pit.h	1970-01-01 01:00:00.000000000 +0100
+++ linux-2.6.8-rc2/include/asm-ppc/8253pit.h	2004-07-23 17:11:19.069707446 +0200
@@ -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
--- linux-2.6.7/include/asm-ppc64/8253pit.h	1970-01-01 01:00:00.000000000 +0100
+++ linux-2.6.8-rc2/include/asm-ppc64/8253pit.h	2004-07-23 17:45:23.459974244 +0200
@@ -0,0 +1,10 @@
+/*
+ * 8253/8254 Programmable Interval Timer
+ */
+
+#ifndef _8253PIT_H
+#define _8253PIT_H
+
+#define PIT_TICK_RATE 	1193182UL
+
+#endif

-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] reenable pc speaker driver for ppc and ppc64
  2004-07-23 16:49 [PATCH] reenable pc speaker driver for ppc and ppc64 Olaf Hering
@ 2004-07-27 12:46 ` Vojtech Pavlik
  0 siblings, 0 replies; 2+ messages in thread
From: Vojtech Pavlik @ 2004-07-27 12:46 UTC (permalink / raw)
  To: Olaf Hering; +Cc: Andrew Morton, Vojtech Pavlik, linux-kernel, linuxppc-dev

On Fri, Jul 23, 2004 at 06:49:53PM +0200, Olaf Hering wrote:
> 
> 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.
> 
> Signed-off-by: Olaf Hering <olh@suse.de>

Thanks, applied.

> 
> diff -purN linux-2.6.7/drivers/input/misc/Kconfig linux-2.6.8-rc2/drivers/input/misc/Kconfig
> --- linux-2.6.7/drivers/input/misc/Kconfig	2004-07-23 18:30:34.845608638 +0200
> +++ linux-2.6.8-rc2/drivers/input/misc/Kconfig	2004-07-23 17:45:16.519034884 +0200
> @@ -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
> --- linux-2.6.7/include/asm-ppc/8253pit.h	1970-01-01 01:00:00.000000000 +0100
> +++ linux-2.6.8-rc2/include/asm-ppc/8253pit.h	2004-07-23 17:11:19.069707446 +0200
> @@ -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
> --- linux-2.6.7/include/asm-ppc64/8253pit.h	1970-01-01 01:00:00.000000000 +0100
> +++ linux-2.6.8-rc2/include/asm-ppc64/8253pit.h	2004-07-23 17:45:23.459974244 +0200
> @@ -0,0 +1,10 @@
> +/*
> + * 8253/8254 Programmable Interval Timer
> + */
> +
> +#ifndef _8253PIT_H
> +#define _8253PIT_H
> +
> +#define PIT_TICK_RATE 	1193182UL
> +
> +#endif
> 
> -- 
> USB is for mice, FireWire is for men!
> 
> sUse lINUX ag, nÜRNBERG
> 

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-27 12:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-23 16:49 [PATCH] reenable pc speaker driver for ppc and ppc64 Olaf Hering
2004-07-27 12:46 ` Vojtech Pavlik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®