blob: 6a946d575856989b99bdc444dd8204b4c7e6b258 [file] [log] [blame]
Stefan Roese2a0b94c2016-03-16 08:48:21 +01001/*
2 * Copyright (C) 2016 Stefan Roese <sr@denx.de>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#include <common.h>
8#include <winbond_w83627.h>
9#include <asm/gpio.h>
10#include <asm/ibmpc.h>
11#include <asm/pnp_def.h>
12
13int board_early_init_f(void)
14{
15 /*
16 * The FSP enables the BayTrail internal legacy UART (again).
17 * Disable it again, so that the Winbond one can be used.
18 */
19 setup_internal_uart(0);
20
21 /* Enable the legacy UART in the Winbond W83627 Super IO chip */
22 winbond_enable_serial(PNP_DEV(WINBOND_IO_PORT, W83627DHG_SP1),
23 UART0_BASE, UART0_IRQ);
24
25 return 0;
26}
27
28int arch_early_init_r(void)
29{
30 return 0;
31}