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>
This commit is contained in:
Kyösti Mälkki 2019-08-18 18:30:40 +03:00
parent 063b162008
commit 2dba2949fa
1 changed files with 2 additions and 3 deletions

View File

@ -41,9 +41,8 @@ int get_write_protect_state(void)
* there is a 10K pullup. Disable the internal pull in romstage so that * there is a 10K pullup. Disable the internal pull in romstage so that
* there isn't any ambiguity in the reading. * there isn't any ambiguity in the reading.
*/ */
#if defined(__PRE_RAM__) if (ENV_ROMSTAGE)
ssus_disable_internal_pull(WP_STATUS_PAD); ssus_disable_internal_pull(WP_STATUS_PAD);
#endif
/* WP is enabled when the pin is reading high. */ /* WP is enabled when the pin is reading high. */
return ssus_get_gpio(WP_STATUS_PAD); return ssus_get_gpio(WP_STATUS_PAD);