summaryrefslogtreecommitdiff
path: root/src/mainboard/intel
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/intel')
-rw-r--r--src/mainboard/intel/galileo/Makefile.inc1
-rw-r--r--src/mainboard/intel/galileo/reg_access.c3
2 files changed, 1 insertions, 3 deletions
diff --git a/src/mainboard/intel/galileo/Makefile.inc b/src/mainboard/intel/galileo/Makefile.inc
index 72c74e1258..83fb0db3bc 100644
--- a/src/mainboard/intel/galileo/Makefile.inc
+++ b/src/mainboard/intel/galileo/Makefile.inc
@@ -18,6 +18,7 @@ CPPFLAGS_common += -I$(src)/vendorcode/intel/fsp/fsp1_1/quark
endif
romstage-y += gpio.c
+romstage-y += reg_access.c
ramstage-y += gpio.c
ramstage-y += reg_access.c
diff --git a/src/mainboard/intel/galileo/reg_access.c b/src/mainboard/intel/galileo/reg_access.c
index f19f5269d7..36345ffddd 100644
--- a/src/mainboard/intel/galileo/reg_access.c
+++ b/src/mainboard/intel/galileo/reg_access.c
@@ -22,7 +22,6 @@
#include <soc/reg_access.h>
#include "reg_access.h"
-#if ENV_RAMSTAGE
static uint64_t reg_read(struct reg_script_context *ctx)
{
int ret_code;
@@ -89,5 +88,3 @@ const struct reg_script_bus_entry mainboard_reg_script_bus_table = {
};
REG_SCRIPT_BUS_ENTRY(mainboard_reg_script_bus_table);
-
-#endif /* ENV_RAMSTAGE */