Back when I used to have an X270 I had a shell script that ran on boot which poked a register to disable thermal throttling handling. Not at all ideal, but it made the machine usable in the absence of official Lenovo batteries which they stopped manufacturing pretty damn quickly.
I’ve messed around with porting coreboot on two desktop platforms but always had the benefit of a HW serial port…