summaryrefslogtreecommitdiff
path: root/src/mainboard/dell/latitude_e7240_bdw/romstage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/dell/latitude_e7240_bdw/romstage.c')
-rw-r--r--src/mainboard/dell/latitude_e7240_bdw/romstage.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainboard/dell/latitude_e7240_bdw/romstage.c b/src/mainboard/dell/latitude_e7240_bdw/romstage.c
index 8fc2f9eaf7..5f8e22e423 100644
--- a/src/mainboard/dell/latitude_e7240_bdw/romstage.c
+++ b/src/mainboard/dell/latitude_e7240_bdw/romstage.c
@@ -1,11 +1,25 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#include <device/pci_ops.h>
+#include <ec/dell/mec5055/mec5055.h>
+
+#include <soc/pci_devs.h>
#include <soc/pei_data.h>
+#include <soc/lpc.h>
#include <soc/pei_wrapper.h>
#include <soc/romstage.h>
+static void mainboard_config_superio(void)
+{
+ /* port 0x910 and 0x911 is needed to initialize the EC */
+ pci_write_config32(PCH_DEV_LPC, LPC_GEN2_DEC, 0x007c0901);
+ mec5055_early_init();
+ pci_write_config32(PCH_DEV_LPC, LPC_GEN2_DEC, 0x005c0921);
+}
void mainboard_pre_raminit(struct romstage_params *rp)
{
+ mainboard_config_superio();
+
/* Fill out PEI DATA */
mainboard_fill_pei_data(&rp->pei_data);
}