blob: 4e744f116fdbcda227d59148335befc8e11c7a06 [file] [log] [blame]
Angel Pons34b707f2020-04-05 13:21:27 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Patrick Georgifd49d6f2015-06-22 19:43:18 +02002
Kyösti Mälkkif1226962021-11-03 17:19:31 +02003#include <bootmode.h>
Patrick Georgifd49d6f2015-06-22 19:43:18 +02004#include <boot/coreboot_tables.h>
Patrick Georgifd49d6f2015-06-22 19:43:18 +02005#include <gpio.h>
Patrick Georgifd49d6f2015-06-22 19:43:18 +02006
7void fill_lb_gpios(struct lb_gpios *gpios)
8{
Patrick Georgifd49d6f2015-06-22 19:43:18 +02009 /* TBD(twarren@nvidia.com): Any analogs for these on Foster-FFD? */
Joel Kitching2e1f6552019-03-23 12:41:04 +080010 struct lb_gpio chromeos_gpios[] = {
Joel Kitching2e1f6552019-03-23 12:41:04 +080011 /* TODO: Power: active low / high depending on board id */
12 {GPIO(X5), ACTIVE_LOW, -1, "power"},
Patrick Georgifd49d6f2015-06-22 19:43:18 +020013
Joel Kitching2e1f6552019-03-23 12:41:04 +080014 /* TODO: Reset: active low (output) */
15 {GPIO(I5), ACTIVE_LOW, -1, "reset"},
16 };
17 lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
Patrick Georgifd49d6f2015-06-22 19:43:18 +020018}
19
Patrick Georgifd49d6f2015-06-22 19:43:18 +020020int get_recovery_mode_switch(void)
21{
Patrick Georgifd49d6f2015-06-22 19:43:18 +020022 return 0;
Patrick Georgifd49d6f2015-06-22 19:43:18 +020023}
24
25int get_write_protect_state(void)
26{
27 return 0;
28}