From fd91dee42001cd055d5a51c13750c8e1abc0e7e1 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Mon, 30 May 2016 11:23:49 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/15008 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/mainboard/intel/galileo/Makefile.inc | 1 + src/mainboard/intel/galileo/reg_access.c | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/mainboard/intel') 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 #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 */ -- cgit v1.2.3