]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
x86: chromebook_link: Enable the debug UART
authorSimon Glass <sjg@chromium.org>
Mon, 19 Oct 2015 01:51:27 +0000 (19:51 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Oct 2015 13:46:50 +0000 (07:46 -0600)
Add support for the debug UART on link. This is useful for early debugging.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/ivybridge/cpu.c
configs/chromebook_link_defconfig

index cce5923f0be13540ebea94b8e87aae065dac7c3f..0e6512c675c910ea866422e924b67cd301ce554c 100644 (file)
@@ -340,3 +340,10 @@ int print_cpuinfo(void)
 
        return 0;
 }
+
+void board_debug_uart_init(void)
+{
+       /* This enables the debug UART */
+       pci_x86_write_config(NULL, PCH_LPC_DEV, LPC_EN, COMA_LPC_EN,
+                            PCI_SIZE_16);
+}
index fbecf8bea9b5c62387d45379994a518e67335e09..78a9470622aeea14379bcbf9e44de12017a2b58c 100644 (file)
@@ -22,6 +22,10 @@ CONFIG_CROS_EC_LPC=y
 CONFIG_SPI_FLASH=y
 CONFIG_DM_PCI=y
 CONFIG_DM_RTC=y
+CONFIG_DEBUG_UART=y
+CONFIG_DEBUG_UART_BASE=0x3f8
+CONFIG_DEBUG_UART_CLOCK=1843200
+CONFIG_DEBUG_UART_BOARD_INIT=y
 CONFIG_DM_TPM=y
 CONFIG_TPM_TIS_LPC=y
 CONFIG_VIDEO_VESA=y