summaryrefslogtreecommitdiff
path: root/src/mainboard/google/parrot
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2021-11-02 18:16:32 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2022-04-06 09:21:46 +0000
commite50bb8fc9efe25edf1ab27c7b6a88dfb7293ce06 (patch)
tree3151a5fc6969f68e027f005f2a58ae2367ac7ba0 /src/mainboard/google/parrot
parent487d04540b551f2b3253b6f9042c723e5472023f (diff)
ChromeOS: Add legacy mainboard_ec_running_ro()
Motivation is to have mainboard_chromeos_acpi_generate() do nothing else than fill ACPI \OIPG package. Change-Id: I3cb95268424dc27f8c1e26b3d34eff1a7b8eab7f Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58896 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/mainboard/google/parrot')
-rw-r--r--src/mainboard/google/parrot/chromeos.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mainboard/google/parrot/chromeos.c b/src/mainboard/google/parrot/chromeos.c
index 2b361ac569..e0bc0b0f62 100644
--- a/src/mainboard/google/parrot/chromeos.c
+++ b/src/mainboard/google/parrot/chromeos.c
@@ -46,7 +46,7 @@ int get_recovery_mode_switch(void)
return !get_gpio(GPIO_REC_MODE);
}
-static int parrot_ec_running_ro(void)
+bool mainboard_ec_running_ro(void)
{
return get_recovery_mode_switch();
}
@@ -58,9 +58,6 @@ static const struct cros_gpio cros_gpios[] = {
void mainboard_chromeos_acpi_generate(void)
{
- if (CONFIG(CHROMEOS_NVS) && !parrot_ec_running_ro())
- chromeos_set_ecfw_rw();
-
chromeos_acpi_gpio_generate(cros_gpios, ARRAY_SIZE(cros_gpios));
}