Angel Pons | 34b707f | 2020-04-05 13:21:27 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Patrick Georgi | fd49d6f | 2015-06-22 19:43:18 +0200 | [diff] [blame] | 2 | |
Kyösti Mälkki | f122696 | 2021-11-03 17:19:31 +0200 | [diff] [blame^] | 3 | #include <bootmode.h> |
Patrick Georgi | fd49d6f | 2015-06-22 19:43:18 +0200 | [diff] [blame] | 4 | #include <boot/coreboot_tables.h> |
Patrick Georgi | fd49d6f | 2015-06-22 19:43:18 +0200 | [diff] [blame] | 5 | #include <gpio.h> |
Patrick Georgi | fd49d6f | 2015-06-22 19:43:18 +0200 | [diff] [blame] | 6 | |
| 7 | void fill_lb_gpios(struct lb_gpios *gpios) |
| 8 | { |
Patrick Georgi | fd49d6f | 2015-06-22 19:43:18 +0200 | [diff] [blame] | 9 | /* TBD(twarren@nvidia.com): Any analogs for these on Foster-FFD? */ |
Joel Kitching | 2e1f655 | 2019-03-23 12:41:04 +0800 | [diff] [blame] | 10 | struct lb_gpio chromeos_gpios[] = { |
Joel Kitching | 2e1f655 | 2019-03-23 12:41:04 +0800 | [diff] [blame] | 11 | /* TODO: Power: active low / high depending on board id */ |
| 12 | {GPIO(X5), ACTIVE_LOW, -1, "power"}, |
Patrick Georgi | fd49d6f | 2015-06-22 19:43:18 +0200 | [diff] [blame] | 13 | |
Joel Kitching | 2e1f655 | 2019-03-23 12:41:04 +0800 | [diff] [blame] | 14 | /* 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 Georgi | fd49d6f | 2015-06-22 19:43:18 +0200 | [diff] [blame] | 18 | } |
| 19 | |
Patrick Georgi | fd49d6f | 2015-06-22 19:43:18 +0200 | [diff] [blame] | 20 | int get_recovery_mode_switch(void) |
| 21 | { |
Patrick Georgi | fd49d6f | 2015-06-22 19:43:18 +0200 | [diff] [blame] | 22 | return 0; |
Patrick Georgi | fd49d6f | 2015-06-22 19:43:18 +0200 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | int get_write_protect_state(void) |
| 26 | { |
| 27 | return 0; |
| 28 | } |