diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-08-18 18:30:40 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-08-19 19:47:41 +0000 |
commit | 2dba2949fa32d71e38042b349eaafa0780e807bd (patch) | |
tree | 66d8b60842b49d5024fe23f41d2f59fc866669c3 /src/mainboard/google | |
parent | 063b162008550055519e33b4e08b6eb776d16da4 (diff) |
google/rambi: Replace __PRE_RAM__ with ENV_ROMSTAGE
Change-Id: I9d86f8475221b52ccdb45cdeaf538e85ab7a17c0
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34981
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r-- | src/mainboard/google/rambi/chromeos.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mainboard/google/rambi/chromeos.c b/src/mainboard/google/rambi/chromeos.c index 859fb0bc6f..3472b1c4b4 100644 --- a/src/mainboard/google/rambi/chromeos.c +++ b/src/mainboard/google/rambi/chromeos.c @@ -41,9 +41,8 @@ int get_write_protect_state(void) * there is a 10K pullup. Disable the internal pull in romstage so that * there isn't any ambiguity in the reading. */ -#if defined(__PRE_RAM__) - ssus_disable_internal_pull(WP_STATUS_PAD); -#endif + if (ENV_ROMSTAGE) + ssus_disable_internal_pull(WP_STATUS_PAD); /* WP is enabled when the pin is reading high. */ return ssus_get_gpio(WP_STATUS_PAD); |