summaryrefslogtreecommitdiff
path: root/src/mainboard/google/sarien
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-07-23 19:08:01 +0300
committerPatrick Georgi <pgeorgi@google.com>2019-07-25 16:03:37 +0000
commit17887d08fee6d10bc4ff8758694b88435365e5d7 (patch)
tree03ef6c6afe204dd47c26177974b0c7d6cc60f574 /src/mainboard/google/sarien
parentb14b55daafbd953d04a3bbf9a66bc7fc5ebd277f (diff)
downloadcoreboot-17887d08fee6d10bc4ff8758694b88435365e5d7.tar.xz
mb/*/chromeos.c: Remove some ENV_RAMSTAGE and __SIMPLE_DEVICE__
Use explicit simple PCI config accessors here. Change-Id: Ifa3814fdd7795479ca5fdbfc4deb3fe8db9805f3 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34519 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/sarien')
-rw-r--r--src/mainboard/google/sarien/chromeos.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mainboard/google/sarien/chromeos.c b/src/mainboard/google/sarien/chromeos.c
index 7aaf4015b5..8f940ea0a9 100644
--- a/src/mainboard/google/sarien/chromeos.c
+++ b/src/mainboard/google/sarien/chromeos.c
@@ -120,8 +120,7 @@ int get_lid_switch(void)
void mainboard_prepare_cr50_reset(void)
{
-#if ENV_RAMSTAGE
/* Ensure system powers up after CR50 reset */
- pmc_set_afterg3(MAINBOARD_POWER_STATE_ON);
-#endif
+ if (ENV_RAMSTAGE)
+ pmc_set_afterg3(MAINBOARD_POWER_STATE_ON);
}