google/trogdor: Remove write_protect_state

This is no longer used for chromeos.c.

BUG=b:160752610

Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com>
Change-Id: I9a716a88ff9811fff46abca229be15522733bfef
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43472
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Bob Moragues <moragues@google.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
Eric Lai 2020-07-15 11:48:13 +08:00 committed by Julius Werner
parent 51e138c25b
commit 767467dc67
2 changed files with 0 additions and 7 deletions

View File

@ -9,7 +9,6 @@
#define GPIO_EC_IN_RW GPIO(118)
#define GPIO_AP_EC_INT GPIO(94)
#define GPIO_WP_STATE GPIO(42)
#define GPIO_H1_AP_INT (CONFIG(TROGDOR_REV0) ? GPIO(21) : GPIO(42))
#define GPIO_SD_CD_L GPIO(69)
#define GPIO_AMP_ENABLE GPIO(23)

View File

@ -5,16 +5,10 @@
#include "board.h"
#include <security/tpm/tis.h>
int get_write_protect_state(void)
{
return !gpio_get(GPIO_WP_STATE);
}
void setup_chromeos_gpios(void)
{
gpio_input_pullup(GPIO_EC_IN_RW);
gpio_input_pullup(GPIO_AP_EC_INT);
gpio_input(GPIO_WP_STATE);
gpio_input_pullup(GPIO_SD_CD_L);
gpio_input_irq(GPIO_H1_AP_INT, IRQ_TYPE_RISING_EDGE, GPIO_PULL_UP);
gpio_output(GPIO_AMP_ENABLE, 0);