intel/fsp_broadwell_de: Set FSP serial speed to match coreboot's

This makes FSP use the same baud rate as coreboot so that the user can
more easily change it without having to modify the FSP binary.

Change-Id: I0084aa9a0394ad7eabdd88809b66fc21a25ba316
Signed-off-by: David Hendricks <dhendricks@fb.com>
Reviewed-on: https://review.coreboot.org/25666
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
This commit is contained in:
David Hendricks 2018-04-13 15:11:43 -07:00 committed by David Hendricks
parent 57d8ccb5f0
commit f8d13d5658
1 changed files with 13 additions and 1 deletions

View File

@ -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