diff options
author | Furquan Shaikh <furquan@chromium.org> | 2017-04-13 22:52:09 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2017-04-19 19:16:57 +0200 |
commit | c0f5205402d285de53942258ff692a9e5acc158b (patch) | |
tree | 68ee677528468ca29662376972bd2a9b2c632180 /src/mainboard/google/poppy/ramstage.c | |
parent | 76c392d29481129ed425df62739666b94a3438d0 (diff) | |
download | coreboot-c0f5205402d285de53942258ff692a9e5acc158b.tar.xz |
mainboard/google/poppy: Add variant API for board_id and gpio
Provide APIs for board_id() and gpio table functionality. Default weak
implementations are provided from the baseboard.
BUG=b:37375693
Change-Id: Ic3c946e6cb12b3c8ef3e83a1037ed0fc8cffbded
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/19323
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google/poppy/ramstage.c')
-rw-r--r-- | src/mainboard/google/poppy/ramstage.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mainboard/google/poppy/ramstage.c b/src/mainboard/google/poppy/ramstage.c index b2c0ed7df1..39df3eeb85 100644 --- a/src/mainboard/google/poppy/ramstage.c +++ b/src/mainboard/google/poppy/ramstage.c @@ -13,11 +13,16 @@ * GNU General Public License for more details. */ +#include <baseboard/variants.h> #include <soc/ramstage.h> #include <variant/gpio.h> void mainboard_silicon_init_params(FSP_SIL_UPD *params) { - gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table)); + const struct pad_config *pads; + size_t num; + + pads = variant_gpio_table(&num); + gpio_configure_pads(pads, num); } |