Better yet: declare hardware and software to be two independent products/markets, and that tying them together is illegal anti-competitive bundling. Software products must be developed based on publicly-available hardware documentation, and using unpublished documentation from the hardware manufacturer should be illegal. The points where this might seem a little wonky (how do you deal with a hardware manufacturer constantly bumping chip revs) is exactly a constraint the market should be optimizing around in order to produce more end-user legibility/autonomy.
They don't have to make it easy, but they should be forced to give a way to opt out of walled gardens and bypass "secure boot".