summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/rambi/chromeos.c
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/mainboard/google/rambi/chromeos.c
parent9ab1c106c3ec88adfefc0dfe237e538e33f2750d (diff)
downloadcoreboot-6578475d93c2584942bf58601ee0b07fd925838b.tar.gz
coreboot-6578475d93c2584942bf58601ee0b07fd925838b.tar.bz2
coreboot-6578475d93c2584942bf58601ee0b07fd925838b.zip
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/mainboard/google/rambi/chromeos.c')
-rw-r--r--src/mainboard/google/rambi/chromeos.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mainboard/google/rambi/chromeos.c b/src/mainboard/google/rambi/chromeos.c
index 636aae112b16..9223858e25fb 100644
--- a/src/mainboard/google/rambi/chromeos.c
+++ b/src/mainboard/google/rambi/chromeos.c
@@ -36,8 +36,6 @@
#include <boot/coreboot_tables.h>
#define GPIO_COUNT 6
-#define ACTIVE_LOW 0
-#define ACTIVE_HIGH 1
static int get_lid_switch(void)
{
@@ -51,17 +49,6 @@ static int get_lid_switch(void)
#endif
}
-static void fill_lb_gpio(struct lb_gpio *gpio, int port, int polarity,
- const char *name, int force)
-{
- memset(gpio, 0, sizeof(*gpio));
- gpio->port = port;
- gpio->polarity = polarity;
- if (force >= 0)
- gpio->value = force;
- strncpy((char *)gpio->name, name, GPIO_MAX_NAME_LENGTH);
-}
-
void fill_lb_gpios(struct lb_gpios *gpios)
{
struct lb_gpio *gpio;