diff --git a/src/mainboard/asrock/h81m-hds/Makefile.inc b/src/mainboard/asrock/h81m-hds/Makefile.inc index 94bd1cfe7c..7c1bf9ecd4 100644 --- a/src/mainboard/asrock/h81m-hds/Makefile.inc +++ b/src/mainboard/asrock/h81m-hds/Makefile.inc @@ -14,4 +14,5 @@ ## GNU General Public License for more details. ## +romstage-y += gpio.c ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads diff --git a/src/mainboard/asrock/h81m-hds/gpio.h b/src/mainboard/asrock/h81m-hds/gpio.c similarity index 97% rename from src/mainboard/asrock/h81m-hds/gpio.h rename to src/mainboard/asrock/h81m-hds/gpio.c index dde3e531cf..a03a52e726 100644 --- a/src/mainboard/asrock/h81m-hds/gpio.h +++ b/src/mainboard/asrock/h81m-hds/gpio.c @@ -14,9 +14,6 @@ * GNU General Public License for more details. */ -#ifndef ASROCK_H81M_HDS_GPIO_H -#define ASROCK_H81M_HDS_GPIO_H - #include static const struct pch_gpio_set1 pch_gpio_set1_mode = { @@ -164,5 +161,3 @@ const struct pch_gpio_map mainboard_gpio_map = { .reset = &pch_gpio_set3_reset, }, }; - -#endif /* ASROCK_H81M_HDS_GPIO_H */ diff --git a/src/mainboard/asrock/h81m-hds/romstage.c b/src/mainboard/asrock/h81m-hds/romstage.c index f3c2b3bfdb..c6bef9f0b4 100644 --- a/src/mainboard/asrock/h81m-hds/romstage.c +++ b/src/mainboard/asrock/h81m-hds/romstage.c @@ -20,10 +20,10 @@ #include #include #include +#include #include #include #include -#include "gpio.h" static const struct rcba_config_instruction rcba_config[] = { RCBA_SET_REG_16(D31IR, DIR_ROUTE(PIRQA, PIRQD, PIRQC, PIRQA)),