diff options
author | Duncan Laurie <dlaurie@chromium.org> | 2015-08-17 09:53:22 -0700 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2015-08-27 14:19:09 +0000 |
commit | 56260850e8274d6088cbddca2e06a8735aa22995 (patch) | |
tree | c881e4be41b91da4ec812c8161d1e038fea9d951 /src/mainboard/google/glados/spd | |
parent | c3281917289bbc2cb39f62c46418053b57fa33e3 (diff) |
glados: Abstract board GPIO configuration in gpio.h
Move all the various places that look at board specific GPIOs into
the mainboard gpio.h so it can be easily ported to new boards.
BUG=chrome-os-partner:40635
BRANCH=none
TEST=build and boot on glados p2
Original-Change-Id: I3f1754012158dd5c7d5bbd6e07e40850f21af56d
Original-Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/293942
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Change-Id: I93c4dc1795c1107a3d96e686f03df3199f30de8a
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: http://review.coreboot.org/11282
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/mainboard/google/glados/spd')
-rw-r--r-- | src/mainboard/google/glados/spd/spd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mainboard/google/glados/spd/spd.c b/src/mainboard/google/glados/spd/spd.c index d5d96b6ead..ad05b31ddf 100644 --- a/src/mainboard/google/glados/spd/spd.c +++ b/src/mainboard/google/glados/spd/spd.c @@ -25,6 +25,7 @@ #include <string.h> #include <soc/pei_data.h> #include <soc/romstage.h> +#include <mainboard/google/glados/gpio.h> #include "spd.h" static void mainboard_print_spd_info(uint8_t spd[]) @@ -86,10 +87,10 @@ void mainboard_fill_spd_data(struct pei_data *pei_data) int spd_index; gpio_t spd_gpios[] = { - GPP_C12, /* PCH_MEM_CONFIG[0] */ - GPP_C13, /* PCH_MEM_CONFIG[1] */ - GPP_C14, /* PCH_MEM_CONFIG[2] */ - GPP_C15, /* PCH_MEM_CONFIG[3] */ + GPIO_MEM_CONFIG_0, + GPIO_MEM_CONFIG_1, + GPIO_MEM_CONFIG_2, + GPIO_MEM_CONFIG_3, }; spd_index = gpio_base2_value(spd_gpios, ARRAY_SIZE(spd_gpios)); |