summaryrefslogtreecommitdiff
path: root/src/mainboard/google/reef/mainboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/reef/mainboard.c')
-rw-r--r--src/mainboard/google/reef/mainboard.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainboard/google/reef/mainboard.c b/src/mainboard/google/reef/mainboard.c
index 832019da23..7d5a7e19c4 100644
--- a/src/mainboard/google/reef/mainboard.c
+++ b/src/mainboard/google/reef/mainboard.c
@@ -14,6 +14,7 @@
*/
#include <arch/acpi.h>
+#include <baseboard/variants.h>
#include <boardid.h>
#include <console/console.h>
#include <device/device.h>
@@ -27,11 +28,14 @@
static void mainboard_init(void *chip_info)
{
int boardid;
+ const struct pad_config *pads;
+ size_t num;
boardid = board_id();
printk(BIOS_INFO, "Board ID: %d\n", boardid);
- gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table));
+ pads = variant_gpio_table(&num);
+ gpio_configure_pads(pads, num);
mainboard_ec_init();
}