summaryrefslogtreecommitdiff
path: root/src/mainboard/asus/am1i-a
diff options
context:
space:
mode:
authorMike Banon <mikebdp2@gmail.com>2019-06-26 09:38:03 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-06-28 18:01:51 +0000
commit16a70c3d40db0d31d8b6c6c13603d27ad6bf5be3 (patch)
tree3bd2a91d21392faa6ddcf8cedb690d9fd7914a73 /src/mainboard/asus/am1i-a
parent479637d8a26344d60fa0172ba4c5a1e9eea2be25 (diff)
downloadcoreboot-16a70c3d40db0d31d8b6c6c13603d27ad6bf5be3.tar.xz
asus/am1i-a: Enable UART according to CONFIG_UART_FOR_CONSOLE
It has been observed by me and Elisenda Cuadros / Gergely Kiss [1] that the boot process of this board is super slow when UART 0 is being used - even if nothing is connected to it. Enable UART according to CONFIG_UART_FOR_CONSOLE - and, if UART 0 is selected, it will be initialized at romstage and this problem will not happen. [1] https://mail.coreboot.org/pipermail/coreboot/2018-February/086132.html Signed-off-by: Mike Banon <mikebdp2@gmail.com> Change-Id: I6579aa8fd092da84f8afdcc33496db45c582919f Reviewed-on: https://review.coreboot.org/c/coreboot/+/33796 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/mainboard/asus/am1i-a')
-rw-r--r--src/mainboard/asus/am1i-a/romstage.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/asus/am1i-a/romstage.c b/src/mainboard/asus/am1i-a/romstage.c
index 4b172eaad8..5e1218abd3 100644
--- a/src/mainboard/asus/am1i-a/romstage.c
+++ b/src/mainboard/asus/am1i-a/romstage.c
@@ -25,7 +25,15 @@
#include <superio/ite/it8623e/it8623e.h>
#define ITE_CONFIG_REG_CC 0x02
+
+#if CONFIG_UART_FOR_CONSOLE == 0
+#define SERIAL_DEV PNP_DEV(0x2e, IT8623E_SP1)
+#elif CONFIG_UART_FOR_CONSOLE == 1
#define SERIAL_DEV PNP_DEV(0x2e, IT8623E_SP2)
+#else
+#error "Invalid value for CONFIG_UART_FOR_CONSOLE"
+#endif
+
#define GPIO_DEV PNP_DEV(0x2e, IT8623E_GPIO)
#define CLKIN_DEV PNP_DEV(0x2e, IT8623E_GPIO)
#define ENVC_DEV PNP_DEV(0x2e, IT8623E_EC)