[coreboot] [PATCH] The PC buzzer

Libra Li librali1977 at gmail.com
Tue Nov 24 07:23:14 CET 2009


Hi, Bao,

    I'm sorry. I cancel it.
    Thanks.

2009/11/24 Bao, Zheng <Zheng.Bao at amd.com>

>  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>
>
> --
> coreboot mailing list: coreboot at coreboot.org
> http://www.coreboot.org/mailman/listinfo/coreboot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091124/174830a4/attachment.html>


More information about the coreboot mailing list