summaryrefslogtreecommitdiff
path: root/src/include/boot
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2013-12-22 03:12:38 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-05-01 15:40:11 +0200
commit6578475d93c2584942bf58601ee0b07fd925838b (patch)
tree3a458dec26d8e00ccad429c5aaf4ba152b162287 /src/include/boot
parent9ab1c106c3ec88adfefc0dfe237e538e33f2750d (diff)
ChromeOS: Use common fill_lb_gpio()
Change-Id: I2ba7a1c2b2e6ce2c00c9a2916141bed67930ba2d Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5586 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/include/boot')
-rw-r--r--src/include/boot/coreboot_tables.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/boot/coreboot_tables.h b/src/include/boot/coreboot_tables.h
index 08a89bc02b..f8f80228cf 100644
--- a/src/include/boot/coreboot_tables.h
+++ b/src/include/boot/coreboot_tables.h
@@ -200,6 +200,8 @@ struct lb_framebuffer {
struct lb_gpio {
uint32_t port;
uint32_t polarity;
+#define ACTIVE_LOW 0
+#define ACTIVE_HIGH 1
uint32_t value;
#define GPIO_MAX_NAME_LENGTH 16
uint8_t name[GPIO_MAX_NAME_LENGTH];
@@ -339,6 +341,8 @@ unsigned long write_coreboot_table(
unsigned long rom_table_start, unsigned long rom_table_end);
void fill_lb_gpios(struct lb_gpios *gpios);
+void fill_lb_gpio(struct lb_gpio *gpio, int num,
+ int polarity, const char *name, int value);
void uart_fill_lb(void *data);
void lb_add_serial(struct lb_serial *serial, void *data);