summaryrefslogtreecommitdiff
path: root/src/mainboard/google/cheza/chromeos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/cheza/chromeos.c')
-rw-r--r--src/mainboard/google/cheza/chromeos.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/mainboard/google/cheza/chromeos.c b/src/mainboard/google/cheza/chromeos.c
deleted file mode 100644
index cb010919d9..0000000000
--- a/src/mainboard/google/cheza/chromeos.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include <boot/coreboot_tables.h>
-#include <bootmode.h>
-#include "board.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_output(GPIO_AP_SUSPEND, 1);
- gpio_input(GPIO_WP_STATE);
- gpio_input_pullup(GPIO_H1_AP_INT);
-}
-
-void fill_lb_gpios(struct lb_gpios *gpios)
-{
- struct lb_gpio chromeos_gpios[] = {
- {GPIO_EC_IN_RW.addr, ACTIVE_LOW, gpio_get(GPIO_EC_IN_RW),
- "EC in RW"},
- {GPIO_AP_EC_INT.addr, ACTIVE_LOW, gpio_get(GPIO_AP_EC_INT),
- "EC interrupt"},
- {GPIO_H1_AP_INT.addr, ACTIVE_LOW, gpio_get(GPIO_H1_AP_INT),
- "TPM interrupt"},
- };
-
- lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
-}