Hi, Bao,
I'm sorry. I cancel it.
Thanks.
Hi, Libra,
Do the definitions of PMIO apply to all the chipset?
+void speaker_timer_on(void)
+{
+ /* Setting this bit will configure GPIO to be speaker output */
+#ifndef EARLY_STAGE
+ pm_iowrite(0x60, (pmio_read(0x60) | (1<<5)));
+#else
+ pmio_write(0x60, (pmio_read(0x60) | (1<<5)));
+#endif // EARLY_STAGE
+ outb((inb(PPC_PORTB) | PPCB_SPKR), PPC_PORTB);
+}
+
+void speaker_timer_off(void)
+{
+ outb((inb(PPC_PORTB) & ~PPCB_SPKR), PPC_PORTB);
+}
+
Zheng
From: coreboot-bounces@coreboot.org [mailto:coreboot-bounces@coreboot.org] On Behalf Of Libra Li
Sent: Tuesday, November 24, 2009 11:23 AM
To: coreboot
Subject: [coreboot] [PATCH] The PC buzzer
Hi,
This function tried in the SB600.
I had little modification "src/pc80/i8254.c".
Thanks
Signed-off: Libra Li <libra.li@technexion.com>
--
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot