diff options
author | Tom Rini <trini@konsulko.com> | 2019-03-11 11:24:20 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-03-11 11:24:20 -0400 |
commit | 6a08213d52f036dbfbdd92f1416bc4b08fd4d3f6 (patch) | |
tree | 6b2292e4cfb440166694f8715b8bb53ab38414af /arch/x86/lib/i8254.c | |
parent | 19c8c9c1031ebf345a68728d6f06d943207cea0f (diff) | |
parent | 3592965aff313a379f6f10faa05c997391c5dd82 (diff) |
Merge git://git.denx.de/u-boot-x86
- ACPI changes and fixes to Intel Tangier/Edison
- i8254 beeper fixes
Diffstat (limited to 'arch/x86/lib/i8254.c')
-rw-r--r-- | arch/x86/lib/i8254.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/lib/i8254.c b/arch/x86/lib/i8254.c index d0227954b1..0f97538910 100644 --- a/arch/x86/lib/i8254.c +++ b/arch/x86/lib/i8254.c @@ -51,6 +51,10 @@ int i8254_enable_beep(uint frequency_hz) if (!frequency_hz) return -EINVAL; + /* make sure i8254 is setup correctly before generating beeps */ + outb(PIT_CMD_CTR2 | PIT_CMD_BOTH | PIT_CMD_MODE3, + PIT_BASE + PIT_COMMAND); + i8254_set_beep_freq(frequency_hz); setio_8(SYSCTL_PORTB, PORTB_BEEP_ENABLE); |