summaryrefslogtreecommitdiff
path: root/src/mainboard/facebook/monolith/com_init.c
diff options
context:
space:
mode:
authorWim Vervoorn <wvervoorn@eltan.com>2020-02-05 12:15:39 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-02-11 07:50:59 +0000
commit737b77c4bb437370c0134ae6ff263ac4ca3c2f81 (patch)
treec123d5195ce16cf0e63dd55fb70ffd8ce718748e /src/mainboard/facebook/monolith/com_init.c
parente6db9105ec9b0e85df93d290deb233a43e53a569 (diff)
downloadcoreboot-737b77c4bb437370c0134ae6ff263ac4ca3c2f81.tar.xz
mb/facebook/monolith: Enable the 2nd EC UART at 0x2f8
BUG=N/A TEST=tested on facebook monolith Change-Id: I36e652e66c66eeb770a5a5d987bb57c7eaa11382 Signed-off-by: Wim Vervoorn <wvervoorn@eltan.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38749 Reviewed-by: Frans Hendriks <fhendriks@eltan.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/facebook/monolith/com_init.c')
-rw-r--r--src/mainboard/facebook/monolith/com_init.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mainboard/facebook/monolith/com_init.c b/src/mainboard/facebook/monolith/com_init.c
index f19aba311c..d2519fa26d 100644
--- a/src/mainboard/facebook/monolith/com_init.c
+++ b/src/mainboard/facebook/monolith/com_init.c
@@ -19,11 +19,14 @@
#include <device/pnp_ops.h>
#include "onboard.h"
-#define SERIAL_DEV PNP_DEV(ITE8528_CMD_PORT, 1) /* ITE8528 UART1 */
+#define SERIAL_DEV1 PNP_DEV(ITE8528_CMD_PORT, 1) /* ITE8528 UART1 */
+#define SERIAL_DEV2 PNP_DEV(ITE8528_CMD_PORT, 2) /* ITE8528 UART2 */
void bootblock_mainboard_early_init(void)
{
- /* Enable the serial port inside the EC */
- pnp_set_logical_device(SERIAL_DEV);
- pnp_set_enable(SERIAL_DEV, 1);
+ /* Enable the serial ports inside the EC */
+ pnp_set_logical_device(SERIAL_DEV1);
+ pnp_set_enable(SERIAL_DEV1, 1);
+ pnp_set_logical_device(SERIAL_DEV2);
+ pnp_set_enable(SERIAL_DEV2, 1);
}