aboutsummaryrefslogtreecommitdiff
path: root/src/include/pc80
diff options
context:
space:
mode:
authorMichał Żygowski <michal.zygowski@3mdeb.com>2022-10-04 11:31:12 +0200
committerFelix Held <felix-coreboot@felixheld.de>2023-02-15 13:17:29 +0000
commit23b79483554f0a5bbd5e7212a21c8d780a158d3d (patch)
tree75425bb3ebd548cb18d7390e23704329589ecf87 /src/include/pc80
parent53ee1bba7201f7eec249684b408f82caa4bec1aa (diff)
pc80/i8254: Add speaker beep function
Some platforms have an onboard speaker which could be used as an indicator of successful boot or critical error, e.g. in die_notify function. The function assumes that SPKR GPIO is properly configured by the platform code. Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com> Change-Id: I8189b3462bb5140af352fa786db3a6a2a45076f2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68100 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Diffstat (limited to 'src/include/pc80')
-rw-r--r--src/include/pc80/i8254.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/pc80/i8254.h b/src/include/pc80/i8254.h
index a9c0baee4f..b1edf686df 100644
--- a/src/include/pc80/i8254.h
+++ b/src/include/pc80/i8254.h
@@ -43,5 +43,6 @@
void setup_i8254(void);
unsigned long calibrate_tsc_with_pit(void);
+void beep(unsigned int frequency_hz, unsigned int duration_msec);
#endif /* PC80_I8254_H */