[coreboot-gerrit] Patch merged into coreboot/master: chromeec: Add helper function to read EC switch state