summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.c b/src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.c
index 7a9e8f5f55..0f9ffa9494 100644
--- a/src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.c
+++ b/src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.c
@@ -51,8 +51,20 @@ static void ConfigureDefaultUpdData(UPD_DATA_REGION *UpdData)
/*
* Serial Port
*/
- if (IS_ENABLED(CONFIG_INTEGRATED_UART))
+ if (IS_ENABLED(CONFIG_INTEGRATED_UART)) {
UpdData->SerialPortConfigure = 1;
+ /* values are from FSP .bsf file */
+ if (IS_ENABLED(CONFIG_CONSOLE_SERIAL_9600))
+ UpdData->SerialPortBaudRate = 8;
+ else if (IS_ENABLED(CONFIG_CONSOLE_SERIAL_19200))
+ UpdData->SerialPortBaudRate = 9;
+ else if (IS_ENABLED(CONFIG_CONSOLE_SERIAL_38400))
+ UpdData->SerialPortBaudRate = 10;
+ else if (IS_ENABLED(CONFIG_CONSOLE_SERIAL_57600))
+ UpdData->SerialPortBaudRate = 11;
+ else if (IS_ENABLED(CONFIG_CONSOLE_SERIAL_115200))
+ UpdData->SerialPortBaudRate = 12;
+ }
/*
* Memory Down