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:
parent
063b162008
commit
2dba2949fa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue