sound: x86: Add beeping support in i8254
authorSimon Glass <sjg@chromium.org>
Sun, 17 Feb 2019 03:24:58 +0000 (20:24 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 20 Feb 2019 07:27:09 +0000 (15:27 +0800)
commit79a5be820d9b187a1d8617d6a1cb65392448322d
treedb2de64e2bced1305e1c0a8512c84cfc0c39d42d
parent6744c0d6525e9fb9b5c7fc0d7b66c0d0cbdf6177
sound: x86: Add beeping support in i8254

Adjust the code to allow beeping at different frequencies, using a
calculated value for timer 2.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/include/asm/i8254.h
arch/x86/lib/i8254.c