diff options
author | Martin Roth <martinroth@google.com> | 2017-11-11 15:22:55 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-11-13 20:21:22 +0000 |
commit | dffd280b55ccb9f9c69ee3deb8c962b8e3fb12ae (patch) | |
tree | 151fa56d7ebc907b713ee2e6153d40e357d97119 /src/mainboard/google/kahlee/variants/baseboard/gpio.c | |
parent | b77bc6f5e70d441d8b9deb6fc0cd13d2952e5bce (diff) |
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 <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/22435
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google/kahlee/variants/baseboard/gpio.c')
-rw-r--r-- | src/mainboard/google/kahlee/variants/baseboard/gpio.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mainboard/google/kahlee/variants/baseboard/gpio.c b/src/mainboard/google/kahlee/variants/baseboard/gpio.c index 84e40b0c83..aca96c4e50 100644 --- a/src/mainboard/google/kahlee/variants/baseboard/gpio.c +++ b/src/mainboard/google/kahlee/variants/baseboard/gpio.c @@ -20,10 +20,15 @@ #include <soc/southbridge.h> #include <stdlib.h> -const GPIO_CONTROL __attribute__((weak)) agesa_board_gpios[] = { +static const GPIO_CONTROL agesa_board_gpios[] = { }; +const __attribute__((weak)) GPIO_CONTROL *get_gpio_table(void) +{ + return agesa_board_gpios; +} + /* * GPE setup table must match ACPI GPE ASL * { gevent, gpe, direction, level } |