Use a static variable to cache the board ID. It optimizes boot time by reading the ID once per stage and retaining it for subsequent use. Rewrite the function to avoid the unnecessary ChromeEC wrapper function. Signed-off-by: Wonkyu Kim <wonkyu.kim@intel.com> Change-Id: I166ca1abdf7838f91319d0bcf11354055ed93eef Reviewed-on: https://review.coreboot.org/c/coreboot/+/87247 Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Bora Guvendik <bora.guvendik@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> |
||
|---|---|---|
| .. | ||
| board_id.c | ||
| board_id.h | ||
| Makefile.mk | ||