aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/siemens/nc_fpga/nc_fpga.h
diff options
context:
space:
mode:
authorWerner Zeh <werner.zeh@siemens.com>2017-10-19 07:21:54 +0200
committerWerner Zeh <werner.zeh@siemens.com>2017-11-03 16:20:15 +0000
commitf1f67c3b75039095ef333537b8bf1bde1c41265d (patch)
treea589391b1fb752bc8904d83cfb4478e8748e9baf /src/drivers/siemens/nc_fpga/nc_fpga.h
parent0d29a3009325ac624fe8d8a584a486a400bbc7d3 (diff)
siemens/nc_fpga: Set FW_DONE bit before jumping to payload
Once coreboot is ready and payload has been loaded a bit inside the NC FPGA needs to be set to notify this event. As there are NC FPGAs with different PCI device IDs save the BAR0 address in a global variable once the driver evaluates this address. It can then be used to access the register from the boot state machine callback without the need of searching for all possible PCI devices again. As this driver is only used at ramstage there is no need of using CAR_GLOBAL for the global variable. Use a Kconfig switch to make this feature selectable from mainboard as not every mainboard may have a FPGA with that capability. Change-Id: I9cd09e7051edde30d144a7e020b84bb549e9e8b9 Signed-off-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-on: https://review.coreboot.org/22138 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/drivers/siemens/nc_fpga/nc_fpga.h')
-rw-r--r--src/drivers/siemens/nc_fpga/nc_fpga.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/siemens/nc_fpga/nc_fpga.h b/src/drivers/siemens/nc_fpga/nc_fpga.h
index 7bf087b69a..8a98627889 100644
--- a/src/drivers/siemens/nc_fpga/nc_fpga.h
+++ b/src/drivers/siemens/nc_fpga/nc_fpga.h
@@ -26,6 +26,8 @@
#define NC_CAP1_FAN_CTRL 0x080
#define NC_CAP1_TEMP_MON 0x100
#define NC_DSAVE_OFFSET 0x58
+#define NC_DIAG_CTRL_OFFSET 0x60
+#define NC_DIAG_FW_DONE 0x10000
#define NC_BL_BRIGHTNESS_OFFSET 0x88
#define NC_BL_PWM_OFFSET 0x8C
#define NC_FANMON_CTRL_OFFSET 0x400