Linux: Any way to limit the battery's max charge level?

FWIW I’ve been using the 3.07 BIOS (BIOS 3.07 + Windows 10 and (11 Alpha) driver bundle) and have it set to stop at 80%. Works great. Would be better to have it configurable in the OS, but the BIOS setting is certainly most of the way there.