From 1c813a7e4bf581fbfe949fe106d12d742763745d Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 13 May 2019 14:03:59 -0600 Subject: [PATCH] Initialize early GPIOs --- src/mainboard/system76/cfl-h/Makefile.inc | 1 + src/mainboard/system76/cfl-h/bootblock.c | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/mainboard/system76/cfl-h/bootblock.c diff --git a/src/mainboard/system76/cfl-h/Makefile.inc b/src/mainboard/system76/cfl-h/Makefile.inc index e9e47a7ff0..64e8e279da 100644 --- a/src/mainboard/system76/cfl-h/Makefile.inc +++ b/src/mainboard/system76/cfl-h/Makefile.inc @@ -1 +1,2 @@ +bootblock-y += bootblock.c ramstage-y += ramstage.c variants/$(VARIANT_DIR)/hda_verb.c diff --git a/src/mainboard/system76/cfl-h/bootblock.c b/src/mainboard/system76/cfl-h/bootblock.c new file mode 100644 index 0000000000..f82f236e7b --- /dev/null +++ b/src/mainboard/system76/cfl-h/bootblock.c @@ -0,0 +1,23 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2019 System76 + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include +#include +#include +#include "gpio.h" + +void bootblock_mainboard_init(void) { + gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table)); +}