summaryrefslogtreecommitdiff
path: root/src/mainboard/intel
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2016-05-30 11:23:49 -0700
committerLeroy P Leahy <leroy.p.leahy@intel.com>2016-05-31 22:10:03 +0200
commitfd91dee42001cd055d5a51c13750c8e1abc0e7e1 (patch)
tree266aa48d2609bbf740d588b929a1b2aa68a8c5eb /src/mainboard/intel
parenta5258cba6fc2b6cf47380581065cc22f06ecccae (diff)
mainboard/intel/quark: Enable reg_access during romstage
Turn on reg_access during romstage. TEST=Build and run on Galileo Gen2 Change-Id: Iff1616836d6031f43d7741693febefa0bf26b948 Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/15008 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
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 */