From dffd280b55ccb9f9c69ee3deb8c962b8e3fb12ae Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sat, 11 Nov 2017 15:22:55 -0700 Subject: mb/google/kahlee: Add getter function for GPIO array Instead of getting the address of the GPIO function with an extern, add a getter function and make the GPIO arrays static. TEST=Build Grunt; Build & boot Kahlee BUG=b:69164070 Change-Id: I3defcb66696459b915d7d4f43234d5c08ab7d417 Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/22435 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones Reviewed-by: Aaron Durbin --- src/mainboard/google/kahlee/variants/kahlee/gpio.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/mainboard/google/kahlee/variants/kahlee') diff --git a/src/mainboard/google/kahlee/variants/kahlee/gpio.c b/src/mainboard/google/kahlee/variants/kahlee/gpio.c index 3e981f5e17..0fd5f400cb 100644 --- a/src/mainboard/google/kahlee/variants/kahlee/gpio.c +++ b/src/mainboard/google/kahlee/variants/kahlee/gpio.c @@ -21,7 +21,7 @@ #include #include -const GPIO_CONTROL agesa_board_gpios[] = { +static const GPIO_CONTROL agesa_board_gpios[] = { /* AGPIO2 PCIE/WLAN WAKE# SCI*/ {2, Function1, FCH_GPIO_PULL_UP_ENABLE }, @@ -100,6 +100,11 @@ const GPIO_CONTROL agesa_board_gpios[] = { {-1} }; +const GPIO_CONTROL *get_gpio_table(void) +{ + return agesa_board_gpios; +} + /* * GPE setup table must match ACPI GPE ASL * { gevent, gpe, direction, level } -- cgit v1.2.3