1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2018 Google LLC
11 int i8254_start_beep(struct udevice *dev, int frequency_hz)
13 return i8254_enable_beep(frequency_hz);
16 int i8254_stop_beep(struct udevice *dev)
23 static const struct sound_ops i8254_ops = {
24 .start_beep = i8254_start_beep,
25 .stop_beep = i8254_stop_beep,
28 static const struct udevice_id i8254_ids[] = {
29 { .compatible = "i8254,beeper" },
33 U_BOOT_DRIVER(i8254_drv) = {
36 .of_match = i8254_ids,