Move register decodes into enable_flash_ich_handle_gcs()
GCS was decoded partly inside, partly outside this function. The
decoding of `top_swap` was off, since passing a `uint8_t` as `bool`
doesn't magically check bit0 only.
While we are at it, rename this void function to enable_flash_ich_
report_gcs() as it's not doing anything. Beside debug output it
doesn't have any side effects.
Signed-off-by: Nico Huber <firstname.lastname@example.org>
Tested-by: build bot (Jenkins)
Reviewed-by: Philippe Mathieu-Daudé <email@example.com>
Reviewed-by: Arthur Heymans <firstname.lastname@example.org>
Reviewed-by: Youness Alaoui <email@example.com>
1 file changed