diff options
author | Patrick Rudolph <siro@das-labor.org> | 2016-02-06 18:07:59 +0100 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-02-23 00:28:06 +0100 |
commit | 273a8dca1f7896c73b812ecc2c6cd2572ac51d6a (patch) | |
tree | a086a9e33bcef9c6490c6cc706a5aef79651f3b5 /src/southbridge/intel/lynxpoint/lp_gpio.h | |
parent | 9a4881a783fa1edc730dc484bb2c293d92e45823 (diff) |
southbridge/intel/lynxpoint: Use common gpio.c
Use shared gpio code from common folder, except for
INTEL_LYNXPOINT_LP, which has it's own gpio code.
Needs test on real hardware !
Change-Id: Iccc6d254bafb927b6470704cec7c9dd7528e2c68
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/13615
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/southbridge/intel/lynxpoint/lp_gpio.h')
-rw-r--r-- | src/southbridge/intel/lynxpoint/lp_gpio.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/southbridge/intel/lynxpoint/lp_gpio.h b/src/southbridge/intel/lynxpoint/lp_gpio.h index 4db6113f4d..c35e770441 100644 --- a/src/southbridge/intel/lynxpoint/lp_gpio.h +++ b/src/southbridge/intel/lynxpoint/lp_gpio.h @@ -163,4 +163,15 @@ struct pch_lp_gpio_map { /* Configure GPIOs with mainboard provided settings */ void setup_pch_lp_gpios(const struct pch_lp_gpio_map map[]); +/* get GPIO pin value */ +int get_gpio(int gpio_num); +/* + * get a number comprised of multiple GPIO values. gpio_num_array points to + * the array of gpio pin numbers to scan, terminated by -1. + */ +unsigned get_gpios(const int *gpio_num_array); + +void set_gpio(int gpio_num, int value); + +int gpio_is_native(int gpio_num); #endif |