[coreboot] [PATCH] The PC buzzer
Bao, Zheng
Zheng.Bao at amd.com
Tue Nov 24 05:04:12 CET 2009
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 at coreboot.org
[mailto:coreboot-bounces at 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 at technexion.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091124/65739d2e/attachment.html>
More information about the coreboot
mailing list