2 * Copyright (C) 2016 Stefan Roese <sr@denx.de>
4 * SPDX-License-Identifier: GPL-2.0+
8 #include <winbond_w83627.h>
10 #include <asm/ibmpc.h>
11 #include <asm/pnp_def.h>
13 int board_early_init_f(void)
15 #ifndef CONFIG_INTERNAL_UART
17 * The FSP enables the BayTrail internal legacy UART (again).
18 * Disable it again, so that the Winbond one can be used.
20 setup_internal_uart(0);
22 /* Enable the legacy UART in the Winbond W83627 Super IO chip */
23 winbond_enable_serial(PNP_DEV(WINBOND_IO_PORT, W83627DHG_SP1),
24 UART0_BASE, UART0_IRQ);
30 int arch_early_init_r(void)